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

Popover Placement

Control popover positioning relative to the trigger

Profile Card Popover

Rich profile card with avatar, stats, and action buttons

Click on the avatar to see profile details:

Form Popover

Interactive form with validation inside a popover

Color Picker Popover

Interactive color picker with presets and custom color input

Choose a color:

Preview:

This text uses your selected color

Settings Panel

Clean settings panel with theme selector and preference toggles

Dashboard
ProjectsTeamAnalytics

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

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