Use for selecting multiple options from a set of checkboxes.
The q2-checkbox-group element has one slot that can be used to insert custom content into the component.
An optional slot to display a custom label.
The q2-checkbox-group element has one or more properties that support text localization. Those properties are indicated by the localizable badge in the description.
disabledDetermines if all checkboxes in the group are put into a disabled state.
hasErrorhas-errorDetermines if the component should display in an errant state.
hideLabelhide-labelHide's the group's <label> element from view.
Only use when a visible label is impractical.
labelThe label that displays above all the checkboxes.
optionalDetermines if the component is marked as optional.
readonlyDetermines if all the checkboxes are marked as readonly.
valueCan be used to get and set the checked status of each <q2-checkbox> element contained within the group.
Example:
element.value = {
'checkbox-value-1': true,
'checkbox-value-2': false,
'checkbox-value-3': true,
};
// Also accepts partial values
element.value = {
'checkbox-value-2': false,
}The q2-checkbox-group element exposes events that can be used to send and receive data from the component based on user interaction.
Emitted when the checkbox selection changes.
anyEmitted when the checkbox selection changes.
anyThe q2-checkbox-group element exposes methods that can be used to perform various actions on the component.
Emulates clicking the <q2-checkbox> option(s) with the provided value.
setValue(values: string | string[]) => Promise<void>The following CSS variables are available to override the default theme styles of the q2-checkbox-group component.
Many Tecton components consume other components to maintain visual and functional consistency. If you are looking for a CSS variable you think should exist but are not seeing it, it may be defined in one of the dependent components below. Either way, if you think it's something we should expose more conveniently, let us know!