- Components
- Overlays
Popover
Floating panel that opens with the menu motion: 160ms, from the trigger corner.
Installation#
npx shadcn add @ortaui/popoverExamples#
Default#
Open#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen | boolean | - | Controlled or uncontrolled state. |
| onOpenChange | (open: boolean) => void | - | Called when the open state changes. |
| side / align | "top" | "right" | "bottom" | "left" / "start" | "center" | "end" | - | Placement relative to the trigger. |
| sideOffset | number | 8 | Gap to the trigger in px. |
| className | string | - | Merged with the component classes via cn(). |