The CheckboxGroup component is used for displaying a list of related options, in the form of Checkbox inputs, where multiple choices may be selected.

Usage

import { PlumaTestHelpers } from '@customerio/pluma-components/react/test-helpers/pluma-test-helpers'

const checkboxGroup = PlumaTestHelpers.extract('CheckboxGroup', screen.getByTestId('data-test-checkbox-group'));

Test Helpers

Gets the id attribute of the fieldset

Checks if the entire group is disabled

Gets the label text of the checkbox group

Gets the name attribute shared by checkboxes in the group

Gets the count of selected checkboxes

Gets the current selected values array

On this page