Skip to content

    Browse components

    Sprout Menu

    A trigger that grows curved branches out to its sub-actions, then pulls them back in when it closes.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/sprout-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/sprout-menu.json

    Usage

    import { SproutMenu } from "@/components/ui/sprout-menu";
    
    <SproutMenu
      items={[
        { label: "Photo", icon: <Camera /> },
        { label: "Note", icon: <FileText /> },
        { label: "Voice", icon: <Mic /> },
      ]}
      onSelect={(item) => create(item.label)}
    />

    Props

    PropTypeDefaultDescription
    radiusnumber130Branch length in px.
    spreadnumber150Fan angle in degrees.
    colorstring"#a3e635"Branch stroke color.
    labelstring"Create"Accessible name of the trigger.
    itemsReactNode—Array of { label, icon } sub-actions.
    onSelectReactNode—Called with (item, index) when a sub-action is picked.
    classNamestring—Extra classes for the root element.