Checkbox
Checkbox for forms
Checkbox components like Radio components also have two variations which the Checkout
and Checkbox1
. They can be import into a file as shown below.
The Checkbox and Checkbox1 are different in style but accept the same properties. The name (string)
and value (string)
properties are required while the ref
prop isn't just like the Radio component.
The Radio Pill
in the Radio component can also be used to wrap the Checkbox component to make it have same outer look like the Radio component.
The Checkbox component can be used with the React-hook-form and can be hooked to React-hook-form using the ref props.
Default Theme configuration for Checkbox component
Last updated
Was this helpful?