Radiov10.5.7 Edit this page
Radios collect user input to influence or change their experience. This option is great for exposing all available options. Users can select a single option from the list.
- Use a balance of radio, card select, and select components to help users make choices and provide info with ease.
- Radios always display within a block to clearly define options and define the target area of each option.
A high-level input with a props interface similar to
<Select> that renders multiple radio options.
RadioGroup, by default, has each radio option and label on its own line and inside a gray block. This makes it easy for the user to scan the options and make the right selection. When there are only two simple options (like "Yes" and "No"), you can save space by having both options rendered inline on one line by using the
You usually want a label for RadioGroup. Use InputGroup to attach a label to RadioGroup.
A single radio option and label. Like RadioGroup, the option can be rendered in a block or inline. Props are passed down to the underlying
Similarity with Checkboxes
This component is very similar (both in design and props) to @nerdwallet/react-checkbox. Checkboxes should be used when the user can select one or more options.
This component is maintained by the FEI team.