logo

Checkbox

A flexible checkbox component with sizes and accessible styling.

Default

Use the checkbox to capture boolean choices and list selections.

Usage

Loading...

States

Sizes

Use the size prop for compact or prominent checkboxes.

API Reference

The Checkbox component renders a styled input[type="checkbox"].

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Controls the checkbox size.
classNamestringundefinedAdd custom classes to the input.
disabledbooleanfalseDisables the checkbox and reduces opacity.
checkedbooleanundefinedControls the checked state when provided.
defaultCheckedbooleanundefinedSets the initial checked state.