Code

Props

Props
Data Type
Required

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

Props
Data Type
Required

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