Skip to content

    Browse components

    Bead Tray

    A segmented tray where the active item pulls out on a liquid metaball thread and drops a bead when it snaps.

    Credit: Calamansi UI (MIT)

    Open
    Customize
    calamansi
    white
    slate
    citrus
    xs
    sm
    md
    lg

    Installation

    npx shadcn@latest add @glint-ui/bead-tray

    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/bead-tray.json

    Usage

    import { BeadTray } from "@/components/ui/bead-tray";
    
    <BeadTray items={["Home", "Components", "Templates", "Docs"]} variant="calamansi" />

    Props

    PropTypeDefaultDescription
    itemsstring[]—Labels, or `{ label, href, icon }` objects. Items with `href` render as links.
    variant"calamansi" | "white" | "slate" | "citrus""calamansi"Palette the active pill wears.
    size"xs" | "sm" | "md" | "lg""md"Label size, with it the corner and the travel.
    separationnumber—Gap the pill opens on each side, in px (defaults per size).
    thresholdnumber19Alpha ramp slope: how hard the fused edge is.
    gooeybooleantrueRun the metaball fuse. Off, the surfaces just slide apart.
    beadbooleantrueLeave a drop of juice where the thread severs.
    valuenumber—Active index (controlled).
    defaultValuenumber0Active index on mount when uncontrolled.
    onChangeReactNode—`(index) => void`, fired on selection.
    radiusnumber—Override the corner radius in px.
    viscositynumber—Fuse blur in px. Defaults to 0.55 of the gap.
    classNamestring—Extra classes for the root element.