@bdt-component-library/radio-group

RadioGroup component

Usage no npm install needed!

<script type="module">
  import bdtComponentLibraryRadioGroup from 'https://cdn.skypack.dev/@bdt-component-library/radio-group';
</script>

README

RadioGroup Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of radio groups according to style guide conventions.

API

prop type required default explanation
children React node yes n/a The components to render inside the radio group
className string no "" Adds an optional classname to the main component
testId string no "" Adds an optional data-testid for testing purposes
inline boolean no false Determines whether or not children components are displayed inline
tile boolean no false Determines whether or not children components are are radio tiles