Popover
Popover component anchored to a button, with placement, alignment and dismiss on Escape or outside click.
How to use it
Run npx @blossomui/react add popover, or copy src/components/UI/Popover/Popover.tsx into your React project and import it.
import { Popover } from './components/ui/Popover'Props
PopoverProps
| Prop | Type | Description |
|---|---|---|
| triggerClassName | string | Classes of the button that opens it. Without them it has a border and a padding. |
| trigger (required) | ReactNode | Content of the button that toggles the popover. |
| children (required) | ReactNode | Content of the popover. |
| title | string | |
| placement | 'bottom' | 'top' | |
| align | 'start' | 'end' | |
| width | string | Width of the panel, as a Tailwind class. |