Popover
Anchored contextual panel.
Loading…
Anchored contextual panel.
Loading…
Anchored contextual panels — color swatch picker, quick actions, inline help.
| Prop | Type | Default | Description |
|---|---|---|---|
| trigger | ReactNode | — | Element that opens the popover. |
| children | ReactNode | — | Popover content. |
| side | "top" | "right" | "bottom" | "left" | bottom | Preferred side. |
| align | "start" | "center" | "end" | start | Alignment along the side. |
| width | number | 200 | Popover width in px. |
Also copy lib/utils.ts (cn helper):