Component referenceVersion Draft
Checkbox
Checkbox supports independent choices through a native checkbox input.
Design notes
Keep checked state and its label together. Use a switch for settings that apply immediately and a radio group for mutually exclusive choices.
Checkbox design
Inspect the original component, variants and visual details.
Playground
Playgrounddemo.tsx
API
Checkbox
A labelled native checkbox. Use checked/defaultChecked for state; value is only the submitted form value. className styles the label, ref points to the input.
No custom imperative methods. Event callbacks are listed as properties.