Radio Button
Used when users must select exactly one option from an exposed list of options. You can either use a default type or the list type
Preview
<Radio
options={["a", "b", "c"]}
name="row"
selected={radioSelected}
setSelected={setRadioSelected}
></Radio>
| Name | Params | Description |
|---|---|---|
| option | the props 'option' will receive an array of option, maximal 3 options and minimum 2 options | |
| radioType | default, list | the props 'radioType' will decide the display of radio button, either a row direction or column |
| selected | the props 'selected' will receive a state as props | |
| setSelected | the props 'setSelected' will receive a setState as props |