Code
Props
Props
Data Type
Required
className
string
❌
label
string
✅
info
string
❌
structure
-HTML tags -Custom Components (Radio)
✅
helptext
string
❌
disabled
boolean
❌
error
boolean
❌
errorMessage
string
❌
onChange
function event
❌
Event Response
This component is not sending any response, instead, it is just facilitating the individual Checkbox components events.
onChange
To make this component to work properly, in the case the developer wants to have one of the items already selected, make sure that only one of the items has a true value, because of radio-buttons standard behavior (There cannot be more than one selected)
Components Dependency
For this component elaboration there were used the following internal components:
Live Demo
For detailed code usage documentation, see the Storybooks for each framework below.
React
Last updated