Popover
Popover with accessible presentation and local state.
Basic content
Installation
Install the shared package once in your Exact app. This version is a beta.
bun add --exact @rightui/ui@0.4.0-beta.4
The Exact compiler requires Bun 1.4.2, regardless of which package manager installs the package.
Complete the font, app metadata and root provider setup (required for both installation methods).
Import
use Popover, PopoverFrame, PopoverTrigger from "@rightui/ui"
Usage
Use Popover for a self-contained panel. For controlled panels, pair PopoverTrigger with PopoverFrame: controls names the panel id, expanded mirrors its state, and press opens or closes it through your action. The trigger shares DisclosureButton variants and sizes while declaring the popover relationship for outside-click handling.
Keyboard
Enter or Space activates the trigger. Escape closes the panel and returns focus to its trigger. Clicking outside closes the panel; interacting inside keeps it open.
API Reference
Properties from the component source. State lives in your component; actions receive the updated value.
PopoverTrigger.id
string
PopoverTrigger.label
string
PopoverTrigger.variant
string
PopoverTrigger.controls
string
PopoverTrigger.expanded
bool
PopoverTrigger.icon
bool
PopoverTrigger.press
action
PopoverFrame.id
string
PopoverFrame.source
string
PopoverFrame.label
string
PopoverFrame.align
string
PopoverFrame.reduced
bool
PopoverFrame.dismiss
action
Popover.id
string
Popover.label
string
Popover.focusId
string
Popover.reduced
bool