side- Type
"top" | "bottom" | "left" | "right"- Default
"bottom"- Description
- Preferred side for the popover.
Search for a command to run...
Components / Overlay
தேங்கும் பலகம்
Popovers are floating panels triggered by clicking a button. Use them for inline forms, filters, and supplementary information that needs more space than a tooltip.
தேங்கும் பலகங்கள் ஒரு பொத்தானை கிளிக் செய்வதால் தூண்டப்படும் மிதக்கும் பலகங்கள்.
3 parts documented for implementation and review.
<button>Interactive element that opens the popover on click. Receives aria-haspopup and aria-expanded. Can wrap any element via asChild. Unlike Tooltip, stays open until explicitly dismissed.
<div>Floating content panel with role=dialog and focus management. First focusable element receives focus on open. Closes on Escape or outside click. Smart positioning avoids viewport overflow.
svgSmall CSS triangle arrow connecting the content to the trigger. Color matches popover background. Auto-positioned based on placement direction.
side"top" | "bottom" | "left" | "right""bottom"align"start" | "center" | "end""center"sideOffsetnumber4openbooleanonOpenChange(open: boolean) => void| Prop | Type | Default | Description |
|---|---|---|---|
side | "top" | "bottom" | "left" | "right" | "bottom" | Preferred side for the popover. |
align | "start" | "center" | "end" | "center" | Alignment relative to trigger. |
sideOffset | number | 4 | Distance in px from trigger. |
open | boolean | - | Controlled open state. |
onOpenChange | (open: boolean) => void | - | Fired on open/close. |
Popovers are ideal for filter panels, mini-forms, and date pickers — content that needs more space than a tooltip but doesn't require a full modal.
வடிகட்டி பலகங்கள், சிறு படிவங்கள், தேதி தேர்வுகள் — Tooltip-ஐ விட அதிக இடம் தேவைப்படும் ஆனால் முழு dialog தேவையில்லாத உள்ளடக்கத்திற்கு Popover சரியானது.
If you only need a short text label on hover, use Tooltip. Popover requires a click — it's overkill for non-interactive content.
hover-ல் குறுகிய உரை தலைப்பு மட்டும் தேவைப்பட்டால் Tooltip பயன்படுத்தவும். Popover கிளிக் தேவைப்படுகிறது — ஊடாடாத உள்ளடக்கத்திற்கு அது அதிகம்.
After a user applies filters or submits a mini-form inside a popover, close it programmatically — don't leave it open after the action is done.
செயல் முடிந்தவுடன் onOpenChange(false) மூலம் Popover-ஐ மூடவும்.
Multiple open popovers create visual clutter and break the focus management model — only one popover should be open at a time on the page.
பல திறந்த Popover-கள் காட்சி குழப்பத்தை உருவாக்குகின்றன மற்றும் கவனம் மேலாண்மை மாதிரியை உடைக்கின்றன.