Popover

Displays rich content in a portal, triggered by a button. Uses native HTML popover API for accessibility and performance.

Installation

CLI

Install the component using the StarUI CLI:

star add popover

Examples

Placement

Control positioning with the side prop

Form Popover

Form inputs inside a popover with programmatic close

Inline Help

Contextual help icon that opens a popover with guidance

Close Button

Explicit close button using PopoverClose

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 data_position with side and align controls
PopoverClose Helper button that hides the popover; can be placed inside content