Checkbox - Keep React

The Checkbox Component is a user interface element that allows users to toggle between two states, typically representing selection or deselection. It consists of a small box that can be checked (selected) or unchecked (deselected). Checkboxes are commonly used in forms, lists, and interactive interfaces to enable users to make multiple selections or indicate their preferences.

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:

PropertyDescriptionTypeDefault
sizeAvailable size options for checkbox.
sm
md
lg
md
labelCheckbox label textstringCheckbox
colorCheckbox Color
info
warning
error
success
info
labelColorCheckbox Color
info
warning
error
success
info
variantCheckbox Variant
square
circle
square
idCheckbox Input Field IDstringone
fieldNameCheckbox Input Field Namestringcheckbox