Skip to content

    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.

    Open
    Customize
    left
    right

    Installation

    npx shadcn@latest add @glint-ui/bloom-menu

    First 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

    PropTypeDefaultDescription
    bouncenumber0.2Spring bounce of the morph.
    durationnumber0.42Morph length in seconds.
    align"left" | "right""left"Which edge the menu grows from.
    itemsReactNode—Array of { label, icon?, hint?, destructive?, onSelect? }.
    classNamestring—Extra classes for the root element.