Checkbox
Lets people independently select or clear an option. Use it for binary choices and groups where more than one choice may apply.
React
Ready
Figma
React examples
With a label
Pair the checkbox with a Field, so the label and description are announced.
Saves 30 seconds before and after each alert.
This camera has no thermal sensor.
import { Checkbox, Field, FieldContent, FieldDescription, FieldLabel, Stack, } from "@kela-systems/ui-components"; export default function CheckboxWithLabel() { return ( <Stack gap={4} className="w-full max-w-xs"> <Field orientation="horizontal"> <Checkbox id="record-on-alert" defaultChecked /> <FieldContent> <FieldLabel htmlFor="record-on-alert">Record on alert</FieldLabel> <FieldDescription>Saves 30 seconds before and after each alert.</FieldDescription> </FieldContent> </Field> <Field orientation="horizontal"> <Checkbox id="notify-on-arrival" /> <FieldContent> <FieldLabel htmlFor="notify-on-arrival">Notify on arrival</FieldLabel> </FieldContent> </Field> <Field orientation="horizontal"> <Checkbox id="night-mode" disabled /> <FieldContent> <FieldLabel htmlFor="night-mode">Thermal overlay</FieldLabel> <FieldDescription>This camera has no thermal sensor.</FieldDescription> </FieldContent> </Field> </Stack> ); }
Props
Checkbox
No props of its own. It also takes the props of Base UI's checkbox.
CheckboxGroup
No props of its own. It also takes the props of Base UI's checkbox-group.