Skip to content

    Browse components

    Drip Range

    Range slider whose thumb stretches with drag speed and drips a gooey value bubble while you slide.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/drip-range

    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/drip-range.json

    Usage

    import { DripRange } from "@/components/ui/drip-range";
    
    <DripRange defaultValue={42} suffix="%" onChange={(v) => console.log(v)} />

    Props

    PropTypeDefaultDescription
    minnumber0Minimum value.
    maxnumber100Maximum value.
    stepnumber1Value increment.
    defaultValuenumber42Initial value when uncontrolled.
    colorstring"#c6ff3d"Thumb, fill and bubble color.
    textColorstring"#0a0a0a"Value text color inside the bubble.
    suffixstring"%"Text appended to the value.
    labelstring"Value"Accessible name.
    valueReactNode—Controlled value (pair with onChange).
    onChangeReactNode—(value: number) => void
    classNamestring—Extra classes for the root element.