Checkbox
An interactive element that allows users to select or deselect an option to enable or disable a specific setting.
code
Expend code
#Horizontal Alignment
code
Expend code
#Checked & Disabled
code
Expend code
Checkbox
The properties of the Radio component used to display the check state or group information of a radio button.
Prop | Type | Default | Description |
---|---|---|---|
className | string | '' | Additional CSS classes that can be applied to the CheckBox component for custom styling. |
label | string | null | The text displayed next to the Checkbox component. |
name | string | null | Used for grouping and identifying the checkbox. |
value | string | null | The value of the checkbox. |
checked | boolean | false | Indicates the checked state of the checkbox, controlling its state. |
onChange | (event: React.ChangeEvent<HTMLInputElement>) => void | undefined | Callback function called when the checkbox state changes. |
disabled | boolean | false | Determines whether the checkbox is disabled. |