Checkbox
Squircle checkbox in three sizes. Supports checked, indeterminate, and disabled states. Works controlled or uncontrolled. Use indeterminate for parent checkboxes in a tree selection.
Installation
npx stepwise-ui add checkbox
States
Sizes
Group
Manage a set of checkboxes with a Set in local state. Each checkbox is a controlled component.
Indeterminate
Pass indeterminate to show the dash state - useful for a "select all" checkbox when some items are selected. The indeterminate prop overrides the visual even if checked is true.
Disabled
Props
PropTypeDescription
size"sm" | "default" | "lg"14 / 18 / 22 px. Default: "default".
labelstringText label rendered next to the checkbox.
checkedbooleanControlled checked state.
defaultCheckedbooleanInitial state when uncontrolled.
indeterminatebooleanShows dash. Overrides the visual regardless of checked.
disabledboolean40% opacity, blocks interaction.
onChange(e: ChangeEvent) => voidChange handler - receives the native event.