Documentation
Components
Popover

Popover

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

Installation

npx shadcn@latest add https://exawizards.com/exabase/design/registry/popover.json

Usage

import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from "@/components/ui/popover"
<Popover>
  <PopoverTrigger>Open</PopoverTrigger>
  <PopoverContent>Place content for the popover here.</PopoverContent>
</Popover>

API

See the Popover – Radix Primitives (opens in a new tab) documentation.

The PopoverContent component has additional property:

PropTypeDefaltDescription
arrowbooleanfalseIf true, adds an arrow to the menu.

Examples

Arrow