Popover

Rich content in a glass bubble attached to a control.

@cupertinoui/popoverBase UI Popover Registry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/popover

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<Popover>
  <PopoverTrigger>Open</PopoverTrigger>
  <PopoverContent>…</PopoverContent>
</Popover>

API Reference

Every part forwards the props of the underlying Base UI Popover part. The props below are the ones CupertinoUI adds or changes.

PopoverContent

PropTypeDescription
align"start" | "center" | "end"
Default: "center"
Alignment against the trigger.
side"top" | "right" | "bottom" | "left"
Default: "bottom"
The preferred side.
classNamestringExtra classes, merged with the component's own.