< CheckboxGroup >
< CheckboxGroup.Label > Choices </ CheckboxGroup.Label >
< FormControl >
< Checkbox value = " one " />
< FormControl.Label > Choice one </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " two " />
< FormControl.Label > Choice two </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " three " />
< FormControl.Label > Choice three </ FormControl.Label >
</ FormControl >
</ CheckboxGroup >
Choices Caption about the choices < CheckboxGroup >
< CheckboxGroup.Label > Choices </ CheckboxGroup.Label >
< CheckboxGroup.Caption > Caption about the choices </ CheckboxGroup.Caption >
< FormControl >
< Checkbox value = " one " />
< FormControl.Label > Choice one </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " two " />
< FormControl.Label > Choice two </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " three " />
< FormControl.Label > Choice three </ FormControl.Label >
</ FormControl >
</ CheckboxGroup >
See the form pattern documentation for more information on form validation patterns.
Choices Something went wrong < CheckboxGroup >
< CheckboxGroup.Label > Choices </ CheckboxGroup.Label >
< FormControl >
< Checkbox value = " one " />
< FormControl.Label > Choice one </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " two " />
< FormControl.Label > Choice two </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " three " />
< FormControl.Label > Choice three </ FormControl.Label >
</ FormControl >
< CheckboxGroup.Validation variant = " error " > Something went wrong </ CheckboxGroup.Validation >
</ CheckboxGroup >
See the CheckboxGroup Storybook stories
< CheckboxGroup required >
< CheckboxGroup.Label > Choices </ CheckboxGroup.Label >
< FormControl >
< Checkbox value = " one " />
< FormControl.Label > Choice one </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " two " />
< FormControl.Label > Choice two </ FormControl.Label >
</ FormControl >
< FormControl >
< Checkbox value = " three " />
< FormControl.Label > Choice three </ FormControl.Label >
</ FormControl >
</ CheckboxGroup >
Loading data for checkbox_group...