Radio button
Use radio buttons when the user can choose a single option from a list of mutually exclusive choices. Only one radio button can be selected at a time. By default, one radio button is preselected. When the user selects another option, the previous selection is automatically deselected.
- Storybook (opens in a new tab)
- Figma library (opens in a new tab)
- Figma spec (opens in a new tab)
npm install @sbks/ds-radio
Colors
Section titled “Colors”| Part | Property | Token |
|---|---|---|
| Circle | Background when selected | --color-button-primary |
| Circle | Border on hover | --color-border-info-emphasis |
| Circle | Border on hover when selected | --color-border-info-emphasis |
| Dot | Color | --color-layer-level-1 |
| Circle with error | Background when selected | --color-layer-danger |
| Circle with error | Border | --color-border-danger-emphasis |
| Circle with error | Border on hover | --color-border-focus-form |
| Circle with error | Border on hover when selected | --color-border-danger-emphasis |
| Dot with error | Color | --color-on-layer-danger |