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 { RadioButtonGroup, RadioButton } from "@/rl-ui";
<RadioButtonGroup defaultValue="remote">
<RadioButton value="remote">Remote</RadioButton>
<RadioButton value="onsite">On-site</RadioButton>
</RadioButtonGroup>Examples#
Sizes#
import { RadioButtonGroup, RadioButton } from "@/rl-ui";
<>
<RadioButtonGroup size="small" defaultValue="a">
<RadioButton value="a">Small</RadioButton>
<RadioButton value="b">Alt</RadioButton>
</RadioButtonGroup>
<RadioButtonGroup size="large" defaultValue="a">
<RadioButton value="a">Large</RadioButton>
<RadioButton value="b">Alt</RadioButton>
</RadioButtonGroup>
</>Block (full width)#
import { RadioButtonGroup, RadioButton } from "@/rl-ui";
<RadioButtonGroup block defaultValue="week">
<RadioButton value="day">Day</RadioButton>
<RadioButton value="week">Week</RadioButton>
<RadioButton value="month">Month</RadioButton>
</RadioButtonGroup>API#
| Prop | Type | Default | Description |
|---|---|---|---|
size | "small" | "medium" | "large" | "medium" | Button height. |
block | boolean | false | Stretch to full width. |
columns | number | — | Grid column count when wrapping. |
defaultValue | string | — | Uncontrolled initial value. |
value | string | — | Controlled value. |
onValueChange | (value: string) => void | — | Change handler. |
disabled | boolean | false | Disable the group. |