A checkbox with drawn check animation, indeterminate state, and hidden native input for forms.
Dependencies
Interaction Type
Click to toggle. Supports checked, unchecked, and indeterminate states.
Props
Options you can pass to customize this component.
checkedControlled checked state.
onCheckedChangeCalled on change.
labelLabel text.
indeterminateShow indeterminate state.
strikeThroughDraws a line through the label when checked, to-do-list style.
Installation
How to use
<Checkbox label="Accept terms" checked={checked} onCheckedChange={setChecked} />Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.