Docs
Checkbox

Checkbox

Collect user's choices.

Usage

Example Code

1import { Checkbox } from "inc-design-system/checkbox";

Example Code

1<Checkbox />

Props

Checkbox

PropTypeDescriptionDefault
classNamestringAdditional CSS classes to apply to the checkbox.-
indeterminatebooleanIndeterminate state for checkbox. Default is false.false
asChildbooleanRender the checkbox as a child component. Default is false.false
defaultCheckedboolean | 'indeterminate'The initial checked state of the checkbox. No default value.-
checkedboolean | 'indeterminate'The checked state of the checkbox. No default value.-
onCheckedChange(checked: boolean | 'indeterminate') => voidCallback when the checked state of the checkbox changes. No default value.-
disabledbooleanWhether the checkbox is disabled. No default value.-
requiredbooleanWhether the checkbox is required for form submission. No default value.-
namestringThe name attribute of the checkbox. No default value.-
valuestringThe value attribute of the checkbox. No default value.-