Checkbox
The Checkbox component allows users to select one or more items from a set. It supports labels, a checked state, and a disabled state.
Default
A basic checkbox with a label.
<Checkbox id="subscribe-newsletter" label="Subscribe to newsletter" />
Checked
Checkbox in a default checked state.
<Checkbox id="agree-terms" label="I agree to the terms" defaultChecked />
Disabled
Checkboxes that cannot be interacted with.
<Checkbox id="option-a" label="Option A" disabled />
<Checkbox id="option-b" label="Option B" defaultChecked disabled />
Accessibility
The checkbox includes an accessible label and a visible focus ring for keyboard navigation.