Usage
import { Radio, RadioProps, radioVariants } from "@desk/ui/components/radio";Best practices
A
Radioonly works inside aRadioGroup(it renders a RadixRadioGroup.Item) — the group owns selection; a standaloneRadiowon't toggle.Give every
Radioa uniquevalueand pair it with aLabel— or useRadioGroupItem, which bundles the radio and its wired label.For selectable-card options rather than plain dots, use
RadioCardGroup.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | ResponsiveSize | "sm" | Radio size — a single token or a per-breakpoint object like
|
Also exports
- type
RadioProps - const
radioVariants
Composition
Used by