Bloom Popover

A popover that blooms out of its trigger with a soft spring and a little tail.

no dependenciesMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/bloom-popover.json

Usage

import { BloomPopover } from "@/components/bloom-popover";

<BloomPopover trigger="Notifications" label="Notification settings">
  <p>Notify me about…</p>
</BloomPopover>

Props

PropTypeDefaultDescription
trigger*ReactNode–Content of the trigger button.
children*ReactNode–Popover content.
labelstring–Accessible name for the popover panel.
side"top" | "bottom""bottom"Where the panel opens.
align"start" | "center" | "end""center"Horizontal alignment with the trigger.
openboolean–Open state (controlled).
onOpenChange(open: boolean) => void–Called when the popover opens or closes.
triggerClassNamestring–Classes for the trigger button.
classNamestring–