Back to Components
Overlays

Popover

Floating content panel anchored to a trigger element.

PropsUsage ExampleVariations

Dependencies

  • clsx
  • tailwind-merge
  • @radix-ui/react-popover

Files

  • components/ui/popover.tsx

Installation

Using shadcn CLI

npx shadcn add popover --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge @radix-ui/react-popover

Related Overlays Components