Code
Props
className
string
label
string
info
string
children
-HTML tags -Custom Components (Checkbox and CheckboxSubGroup)
helptext
string
disabled
boolean
error
boolean
errorMessage
string
onChange
function event
The properties marked with a ? are optionals.
Children
To generate the structure required for the checkboxGroup, the developer is able to insert the following components as children elements:
Checkbox
Consult the Checkbox chapter to know more about the props it receives.
CheckboxSubGroup
children
HTML Tags Custom Components (Checkbox)
label
string
At using Checkbox or CheckboxSubGroup inside a CheckboxGroup component, they are going to receive the error, disabled and onChange events by default and the developer should not include them in the code.
Event Response
This component is not sending any response, instead, it is just facilitating the individual Checkbox components events.
onChange
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