Sections
Components
- Alert banner
- Alert dialog
- Alert
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar icon
- Cell layout
- Cell link
- Checkbox
- Collapse
- Control label
- Date picker
- Dialog
- Divider
- Drawer
- Empty cell
- Empty state
- Empty
- Error overlay
- Filter bar
- Filter chips
- Flex
- Grid layout
- Humanised date
- Icon
- Duration input
- Input field
- Input
- Label
- Loader
- More actions
- Number input
- Outside click
- Page loader
- Page
- Popconfirm
- Popover
- Progress pie
- Progress
- Radio button group
- Radio Group
- Radio
- Relative time
- Resizable
- Search input
- Select
- Skeleton text
- Skeleton
- Space
- Squad avatar list
- Status picker
- Stepper
- Switch
- Content switcher
- Table light
- Tabs
- Tag
- Text
- Textarea
- Toast
- Tooltip
- Trigger select
- Upload
<rl-switch checked></rl-switch>Examples#
Size#
<rl-switch size="small" checked></rl-switch>
<rl-switch size="medium" checked></rl-switch>
<rl-switch size="large" checked></rl-switch>API#
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | On/off state. |
disabled | boolean | false | Prevents interaction. |
size | "small" | "medium" | "large" | "medium" | Thumb and track size. |
name | string | — | Form name. |