@bdt-component-library/radio-group
v0.5.4
Published
RadioGroup component
Downloads
40
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.
- https://zeroheight.com/990ea04ab/p/78ca74-controls/t/50c91f
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 |