ComponentsCheckbox
Checkbox
The Checkbox is a widely used input component for toggling between checked and unchecked states. It supports basic, controlled, and indeterminate states.
The Checkbox is a widely used input component for toggling between checked and unchecked states. It supports basic, controlled, and indeterminate states.
Prop | Type | Default |
---|---|---|
asChild | boolean | |
checked | CheckedState | |
defaultChecked | CheckedState | |
dir | 'ltr' | 'rtl' | |
disabled | boolean | |
form | string | |
getRootNode | () => ShadowRoot | Node | Document | |
id | string | |
ids | Partial<{
root: string
hiddenInput: string
control: string
label: string
}> | |
invalid | boolean | |
name | string | |
onCheckedChange | (details: CheckedChangeDetails) => void | |
required | boolean | |
value | string |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |