Radio
atomRadio button used inside a RadioGroup for mutually exclusive selection. Supports vertical and horizontal orientation, three sizes (sm/md/lg), a group-level disabled state, and a contained prop for border-strong card-style options with neutral checked fill and helperText.
Vertical group
Default vertical stacking for a list of options.
Horizontal group
Side-by-side layout for compact option sets.
Disabled group
All radio buttons are non-interactive.
Contained
Border-strong containers with neutral checked fill for plan-style selection.
Usage
Installation
API Reference
Radio props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
name* | string | — | Shared name attribute for the radio group. |
value* | string | — | Controlled selected value. |
onChange* | (value: string) => void | — | Called when the selection changes. |
orientation | "vertical" | "horizontal" | "vertical" | Layout direction. |
size | "sm" | "md" | "lg" | "md" | Radio button size. |
contained | boolean | false | Wraps each radio in a bordered container with padding. |
disabled | boolean | false | Disables all radio buttons in the group. |
children* | React.ReactNode | — | Radio components. |