Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Popover

Rich content anchored to a trigger. Non-modal; closes on outside click.

$ pnpm dlx shadcn@latest add @dumb/popover

Needs the @dumb registry in components.json and the style tokens. See Installation.

import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"
<Popover>
  <PopoverTrigger asChild>
    <Button variant="outline">Share</Button>
  </PopoverTrigger>
  <PopoverContent>...</PopoverContent>
</Popover>
SpaceEnter
Opens the popover.
Esc
Closes it and returns focus.