Sections
Components
- AlertBanner
- AlertDialog
- Alert
- Avatar
- Badge
- Breadcrumb
- Button
- CalendarIcon
- CellLayout
- CellLink
- Checkbox
- Collapse
- ContentSwitcher
- ControlLabel
- DatePicker
- Dialog
- Divider
- Drawer
- EmptyCell
- EmptyState
- Empty
- ErrorOverlay
- FilterBar
- FilterChips
- Flex
- GridLayout
- HumanisedDate
- Icon
- InputDuration
- InputField
- Input
- Label
- Loader
- MoreActions
- NumberInput
- OutsideClickHandler
- PageLoader
- Page
- Popconfirm
- Popover
- ProgressPie
- Progress
- RadioButtonGroup
- RadioGroup
- Radio
- RelativeTime
- Resizable
- SearchInput
- Select
- SkeletonText
- Skeleton
- Space
- SquadAvatarList
- StatusPicker
- Stepper
- Switch
- TableLight
- Tabs
- Tag
- Text
- Textarea
- Toast
- Tooltip
- TriggerSelect
- Upload
import { RadioGroup, Radio, ControlLabel } from "@/rl-ui";
<RadioGroup defaultValue="a">
<ControlLabel label="Option A" control={<Radio value="a" />} />
</RadioGroup>Examples#
With ControlLabel#
Radio itself is circle-only. Wrap with ControlLabel for accessible text labels.
import { RadioGroup, Radio, ControlLabel } from "@/rl-ui";
<RadioGroup defaultValue="email" layout="vertical">
<ControlLabel label="Email" control={<Radio value="email" />} />
<ControlLabel label="SMS" control={<Radio value="sms" />} />
</RadioGroup>API#
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Option value (required). |
disabled | boolean | false | Prevents interaction. |
id | string | — | Passed through to the radio item. |
className | string | — | Classes on the radio circle. |