Popover
A floating panel anchored to a button, for a few settings or details. Glass in Kiri, hard-shadowed in Iwa.
Installation
Or with the shadcn CLI, from the registry:
Usage
Villages
A popover surface: card colours, the village's large radius and shadow, blur in Kiri.
Accessibility
- The popup is a
dialognamed byPopoverTitleand described byPopoverDescription. - Opening moves focus into it; Esc or a click outside closes it and returns focus to the trigger.
API reference
The parts of Base UI's Popover, styled:
| Part | Notes |
|---|---|
Popover | open, defaultOpen, onOpenChange, modal |
PopoverTrigger | render to use a Button; openOnHover |
PopoverContent | portal and popup; side (default "bottom"), sideOffset, align |
PopoverTitle, PopoverDescription | name and describe the popup |
PopoverClose | a button that closes it |