The RadioGroup component is used for displaying a list of related options, in the form of Radio inputs, where only one choice can be selected.

Usage

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

const radioGroup = PlumaTestHelpers.extract('RadioGroup', screen.getByRole('radiogroup', { name: 'Color Options' }));

Test Helpers

Gets the id attribute of the fieldset

Checks if the entire group is disabled

Gets the label text of the radio group

Gets the name attribute shared by radios in the group

Gets the currently selected radio value

Checks if any radio in the group is currently selected

Checks if a specific value is currently selected

On this page