Skip to main content

Installation

Usage

Component API

Popover

Root popover component. Built on Radix UI Popover.

PopoverTrigger

Trigger element that opens the popover.

PopoverContent

Popover content container with portal rendering.
Props:
  • align - Horizontal alignment relative to trigger (default: "center")
  • sideOffset - Distance from trigger in pixels (default: 4)

PopoverAnchor

Optional anchor element for positioning.

PopoverHeader

Header section for title and description.

PopoverTitle

Title heading for the popover.

PopoverDescription

Description text for the popover.

Examples

Basic Popover

A simple popover with a header, title, and description:

Alignment

Control horizontal alignment with the align prop:

With Form

A popover containing form fields:

API Reference

See the Radix UI Popover documentation for additional props and configuration options.