Checkbox - Keep React
Table of Contents#
Default Checkbox#
The default checkbox is a square checkbox that can be checked or unchecked.
Checkbox Variant#
The Checkbox component offers four variants: checked
,dashed
,rounded
and circle
. You can use the variant
prop to specify the desired variant.
Disabled Checkbox#
You can disable the checkbox by setting the disabled
prop to true
.
API Reference#
Here is a list of the props that you can pass to the Checkbox component:
Property | Description | Type | Default |
---|---|---|---|
variant | Checkbox Variant | dashed checked rounded circle | checked |
className | Custom class to be added to the checkbox. | string | None |