Popover
Displays rich content in a portal, triggered by a button.
Installation
npx shadcn@latest add https://exawizards.com/exabase/design/registry/popover.json
Usage
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/components/ui/popover"
<Popover>
<PopoverTrigger>Open</PopoverTrigger>
<PopoverContent>Place content for the popover here.</PopoverContent>
</Popover>
API
See the Popover – Radix Primitives (opens in a new tab) documentation.
The PopoverContent
component has additional property:
Prop | Type | Defalt | Description |
---|---|---|---|
arrow | boolean | false | If true , adds an arrow to the menu. |