Skip to content

    Browse components

    Goo Radio

    A radio group with one gooey dot that stretches as it slides to the new option, splats on landing and jiggles back into shape.

    Open
    Customize

    starter
    pro
    enterprise

    Installation

    npx shadcn@latest add @glint-ui/goo-radio

    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/goo-radio.json

    Usage

    import { GooRadio } from "@/components/ui/goo-radio";
    
    <GooRadio
      options={[
        { value: "starter", label: "Starter" },
        { value: "pro", label: "Pro" },
      ]}
      value={plan}
      onValueChange={setPlan}
    />

    Props

    PropTypeDefaultDescription
    labelstring"Plan"Group label.
    defaultValue"starter" | "pro" | "enterprise""pro"Initial value when uncontrolled.
    colorstring"#fb7185"Dot and ring color.
    wobblenumber0.6How jelly-like the dot is.
    optionsReactNode—Array of { value, label, description? }.
    valueReactNode—Controlled value. Pair with onValueChange.
    onValueChangeReactNode—Called with the newly selected value.
    nameReactNode—Form field name for the native radios.
    classNamestring—Extra classes for the root element.