Atelier UI

Search components…

Search components…

Popover

Click-triggered popover with side and alignment options; closes on outside click or Esc and restores focus.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

PopoverProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
trigger* requiredReact.ReactNode——
children* requiredReact.ReactNode—Panel content
side"top" | "bottom""bottom"—
align"start" | "center" | "end""center"—
widthnumber288Panel width in px
panelLabelstring—Accessible name of the panel
triggerClassNamestring——
openboolean——
defaultOpenbooleanfalse—
onOpenChange(open: boolean) => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/popover.json

More like this