Browse components
Bloom Menu
A button that blooms into its own menu: the pill stretches into a panel in place, the label fades into the actions, and it folds back when you pick one. Arrow keys, Home/End and Escape work.
Installation
npx shadcn@latest add @glint-ui/bloom-menuFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/bloom-menu.json
Usage
import { BloomMenu } from "@/components/ui/bloom-menu";
<BloomMenu
label="New"
icon={<Plus />}
items={[
{ label: "New file", icon: <FilePlus2 />, onSelect: createFile },
{ label: "Delete", icon: <Trash2 />, destructive: true, onSelect: remove },
]}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| bounce | number | 0.2 | Spring bounce of the morph. |
| duration | number | 0.42 | Morph length in seconds. |
| align | "left" | "right" | "left" | Which edge the menu grows from. |
| items | ReactNode | — | Array of { label, icon?, hint?, destructive?, onSelect? }. |
| className | string | — | Extra classes for the root element. |