Skip to content

    Browse components

    Tail Knob

    A drag-around knob whose indicator trails a glowing comet tail, with a live readout and full arrow-key support.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/tail-knob

    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/tail-knob.json

    Usage

    import { TailKnob } from "@/components/ui/tail-knob";
    
    const [volume, setVolume] = useState(40);
    
    <TailKnob value={volume} onChange={setVolume} label="Volume" unit="%" />

    Props

    PropTypeDefaultDescription
    defaultValuenumber40Initial value when uncontrolled.
    minnumber0Lowest value.
    maxnumber100Highest value.
    stepnumber1Value increment.
    colorstring"#38bdf8"Comet and arc color.
    sizenumber220Diameter in px.
    labelstring"Volume"Caption and accessible name.
    unitstring"%"Suffix after the number.
    disabledbooleanfalseDisable interaction.
    valueReactNode—Controlled value. Pair with onChange.
    onChangeReactNode—Called with the new value.
    classNamestring—Extra classes for the root element.