Forms
Radio
Radio button with smooth selection animation.
Selection
Individual radio buttons for selecting a single option. Best used when there are 2-5 options to keep visible.
Radio Group
The standard way to handle single selection from a list. Supports custom layout direction and spacing tokens.
Billing Cycle (Row)
Project Status (Column)
Real-world: Account Switcher
An interactive, controlled example showing how to handle account type selection with live feedback.
Account Type
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | — | Controlled Boolean checked state |
defaultChecked | boolean | — | Initial uncontrolled checked state |
value | string | — | Raw data string or URL to encode into the QR grid |
onChange | (value: string) => void | — | Callback function triggered when the value changes |
label | string | — | Primary text label description |
disabled | boolean | — | If true, disables all user interaction and applies faded opacity |
name | string | — | Form field name identifier for submissions |
options | { label: string | — | Array of option items containing value and label elements |