Checkbox

A raised checkbox that sinks when pressed. The tick draws itself in. It supports the mixed state, a label and a description.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Checkbox3D props

PropTypeDefaultDescription
checkedbooleanControlled checked state.
defaultCheckedbooleanfalseInitial checked state when uncontrolled.
onCheckedChange(checked: boolean) => voidCalled with the new checked state whenever it changes.
indeterminatebooleanfalseShow the mixed state (a dash). It clears as soon as the user clicks.
disabledbooleanStops the user from changing the checkbox.
labelReactNodeVisible label shown next to the checkbox.
descriptionReactNodeSmaller helper text shown under the label.
namestringWhen set, a hidden input is rendered so the value posts with a form.
valuestring"on"Value posted with the form when checked. Used with name.
aria-labelstringRequired when there is no visible label.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks