Skip to content
Feedback & OverlaysFree

Popover

A floating panel anchored to a trigger element.

Usage

Installation

bash
npx wunderui-cli add popover

Writes the source into your project with its dependencies and, on first use, the styles — see Installation.

Then import what you need:

tsx
import {
  Popover,
  PopoverClose,
  PopoverContent,
  PopoverTrigger,
} from "@/components/ui/popover"

Examples

Below

The popover opens below its button — click it.

Above

The popover opens above its button — click it.

Left

The popover opens to the left of its button — click it.

The popover opens to the right of its button — click it.

In context

How the component is used inside real screens — the same compositions as the Usage section of the Figma page.

Share popover

A popover with a form and actions, opened from a toolbar button.