The Popover displays rich content anchored to a trigger. Compose it from Popover, PopoverTrigger, and PopoverContent.
Preview
Usage
Installation
$ npx shadcn@latest add https://spark-ui-olive.vercel.app/r/popover.json
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
align | "start" | "center" | "end" | "center" | PopoverContent only: alignment against the trigger. |
sideOffset | number | 4 | PopoverContent only: distance from the trigger. |
className | string | — | Additional CSS classes. |