Command Palette

Search for a command to run...

Popover

Displays rich content in a portal, triggered by a button. Built on Base UI Popover primitive.

Installation

npx shadcn add popover --registry https://ui.ch.sh/r

Usage

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

export default function Example() {
  return (
    <Popover>
      <PopoverTrigger>Open</PopoverTrigger>
      <PopoverContent>Content here.</PopoverContent>
    </Popover>
  )
}