Components
Popover
Displays rich and interactive content in a portal, triggered by a button or other interactive element.
Installation
Install ReUI
Refer to the Installation Guide for detailed instructions on setting up ReUI dependencies in your project.
Install dependencies
npm install @radix-ui/react-popover
Add component
Copy and paste the following code into your project’s components/ui/popover.tsx
file.
Examples
Default
Loading
API Reference
This component is built using Radix UI Popover primitives. For detailed information, please visit the full API reference.
Popover
This component is based on the Popover.Root primitive. For more details, refer to the original documentation.
PopoverTrigger
This component is based on the Popover.Trigger primitive. For more details, refer to the original documentation.
PopoverContent
This component is based on the Popover.Content primitive and includes the following custom props:
Prop | Type | Default |
---|---|---|
align | ||
sideOffset | ||
className |