Skip to content

    Browse components

    Checkbox

    Native checkbox restyled with a hand-drawn tick animation, indeterminate dash, label and description.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/checkbox

    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/checkbox.json

    Usage

    import { Checkbox } from "@/components/ui/checkbox";
    
    <Checkbox name="updates" label="Email me product updates" defaultChecked />

    Props

    PropTypeDefaultDescription
    labelstring"Email me product updates"Clickable label.
    descriptionstring"About one email a month. Unsubscribe anytime."Helper text, linked via aria-describedby.
    indeterminatebooleanfalseMixed state, shows a dash.
    disabledbooleanfalseDisable the checkbox.
    checkedReactNode—Controlled checked state (or use defaultChecked). All native input props are forwarded.
    classNamestring—Extra classes for the root element.