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 { Checkbox } from "@/rl-ui";
<Checkbox label="Subscribe" defaultChecked />Examples#
States#
import { Checkbox } from "@/rl-ui";
<>
<Checkbox label="Unchecked" />
<Checkbox label="Checked" defaultChecked />
<Checkbox label="Indeterminate" indeterminate />
<Checkbox label="Disabled" disabled />
<Checkbox label="Disabled checked" disabled defaultChecked />
</>Colors#
import { Checkbox } from "@/rl-ui";
<>
<Checkbox color="blue" label="Blue" defaultChecked />
<Checkbox color="black" label="Black" defaultChecked />
</>Helper text#
import { Checkbox } from "@/rl-ui";
<Checkbox label="Accept terms" helperTextType="error" helperText="Required to continue" />API#
| Prop | Type | Default | Description |
|---|---|---|---|
color | "blue" | "black" | "blue" | Checked fill color. |
label | ReactNode | — | Adjacent label. |
helperText | string | — | Supporting text under the label. |
helperTextType | "error" | "warning" | "info" | "info" | Helper tone. |
indeterminate | boolean | false | Mixed / partial selection. |
checked | boolean | "indeterminate" | — | Controlled checked state. |
defaultChecked | boolean | — | Uncontrolled initial state. |
disabled | boolean | false | Prevents interaction. |
readOnly | boolean | false | Displays value without edits. |