Checkbox

The Checkbox component is a versatile form control for selecting one or multiple options.

Usage

Default

<Checkbox label="Accept Terms" checked={checked} onChange={...} />

Props

Sortable data table
PropTypeDefaultDescription
checkedboolean-Whether the checkbox is checked.
indeterminatebooleanfalseDisplays the checkbox in an indeterminate state.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme for the checkbox.
rounding"none" | "small" | "medium" | "large"Configured DefaultBorder radius style for the checkbox.
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultCheckbox size preset.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow style for the checkbox.
state"" | "success" | "error" | "warning"-Special state styling (e.g. success, error, warning).
disabledbooleanfalseDisable the checkbox input.
labelstring-The text label shown next to the checkbox.
labelPosition"left" | "right""right"Show the label on the left or right side of the checkbox.
classNamestring-Additional CSS class names.
idstring-HTML id attribute for the checkbox.
data-testidstring"checkbox"Test ID for end-to-end or unit testing.
onChange(checked: boolean) => void-Callback fired when the checked state changes.