Displays rich content in a portal, triggered by a button. Uses native HTML popover API for accessibility and performance.
About This Feature
Popovers are great for displaying contextual information without navigating away from the current page.
Click anywhere outside to close.
Installation
CLI
Install the component using the StarUI CLI:
star add popoverExamples
Popover Placement
Control popover positioning relative to the trigger
This popover appears above the trigger
This popover appears to the right
This popover appears below (default)
This popover appears to the left
Profile Card Popover
Rich profile card with avatar, stats, and action buttons
Click on the avatar to see profile details:
shadcn
@shadcn
Building beautiful and accessible UI components. Creator of ui/shadcn.
Following
Followers
Repos
Form Popover
Interactive form with validation inside a popover
Schedule a Meeting
Color Picker Popover
Interactive color picker with presets and custom color input
Choose a color:
Choose Color
Preview:
This text uses your selected color
Settings Panel
Clean settings panel with theme selector and preference toggles
Settings
APPEARANCE
PREFERENCES
Help Tooltip Popovers
Contextual help information for form fields and UI elements
Form fields with help information:
Popover with Close Button
Popover with explicit close button and action buttons
System Maintenance
Scheduled maintenance will occur tonight from 2:00 AM to 4:00 AM EST.
During this time, some features may be unavailable.
API Reference
| Component | Description |
|---|---|
Popover |
Container that wires a unique signal to trigger and content using the native popover API |
PopoverTrigger |
Button that toggles the popover open/closed |
PopoverContent |
Floating content positioned via ds_position with side and align controls |
PopoverClose |
Helper button that hides the popover; can be placed inside content |