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.

PropTypeDefaultDescription
classNamestring''Additional CSS classes that can be applied to the CheckBox component for custom styling.
labelstringnullThe text displayed next to the Checkbox component.
namestringnullUsed for grouping and identifying the checkbox.
valuestringnullThe value of the checkbox.
checkedbooleanfalseIndicates the checked state of the checkbox, controlling its state.
onChange(event: React.ChangeEvent<HTMLInputElement>) => voidundefinedCallback function called when the checkbox state changes.
disabledbooleanfalseDetermines whether the checkbox is disabled.