120k

Popover

Displays rich content in a portal, triggered by a button.

Installation

pnpm dlx shadcn@latest add @force-ui-ember/popover

Usage

import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from '@/ui/popover';
<Popover>
  <PopoverTrigger>
    <Button @variant="outline">Open Popover</Button>
  </PopoverTrigger>
  <PopoverContent>
    Place content for the popover here.
  </PopoverContent>
</Popover>

Composition

Use the following composition to build a Popover:

Popover
├── PopoverTrigger
└── PopoverContent

Examples

Basic

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

Align

Use the @align prop on PopoverContent to control the horizontal alignment.

With Form

A popover with form fields inside.

RTL

To enable RTL support in Force UI, see the RTL configuration guide.

API Reference

See the Radix UI Popover documentation.