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 two variants: square
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 |
---|---|---|---|
size | Available size options for checkbox. | sm md lg | md |
label | Checkbox label text | string | Checkbox |
color | Checkbox Color | info warning error success | info |
labelColor | Checkbox Color | info warning error success | info |
variant | Checkbox Variant | square circle | square |
id | Checkbox Input Field ID | string | one |
fieldName | Checkbox Input Field Name | string | checkbox |