0.5.4 • Published 4 years ago
@bdt-component-library/radio-group v0.5.4
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 |