Checkbox
Checkboxes are used to let a user choose one or more options from a limited number of options. You can also use this component for one option only.
Preview
<Checkbox
name="checkboxgroup"
options={singleCheckbox}
checked={selectedDefault}
setChecked={setSelectedDefault}
></Checkbox> | Name | Params | Description |
|---|---|---|
| options | The props 'options' will receive several options as an array of string | |
| name | When two or more checkbox have the same name, they will automatically be in the same group | |
| disabled | the props 'disabled' that is added to the component will make the component unable to be checked | |
| checked | the props 'selected' will receive a state as props | |
| setChecked | the props 'setSelected' will receive a setState as props |