UI
Popover
Floating UI popover component for displaying contextual content
Preview
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">Open Popover</Button>
</PopoverTrigger>
<PopoverContent>
<p>Place content for the popover here.</p>
</PopoverContent>
</Popover>
Props
The Popover component accepts the following props:
Prop
Type
Installation
npx shadcn@latest add popover
If you encounter issues, check the registry setup guide for configuration help.
Registry Dependencies
This component has no registry dependencies.
Dependencies
This component requires the following NPM packages:
- React - JavaScript library for building user interfaces
- @radix-ui/react-popover - Radix UI popover primitives