Skip to content

    Browse components

    Pop Check

    Checkbox that squashes on press, pops and wobbles when checked, floods with color from the center and springs its tick in with a spark burst.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/pop-check

    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/pop-check.json

    Usage

    import { PopCheck } from "@/components/ui/pop-check";
    
    <PopCheck label="Ship it" checked={ready} onChange={setReady} />

    Props

    PropTypeDefaultDescription
    labelstring"Ship it"Label text (any node).
    defaultCheckedbooleanfalseInitial state when uncontrolled.
    colorstring"#22c55e"Fill color when checked.
    sizenumber28Box size in px.
    disabledbooleanfalseDisable the checkbox.
    checkedReactNode—Controlled state, pair with onChange.
    onChangeReactNode—(checked: boolean) => void.
    classNamestring—Extra classes for the root element.