DocsInstallationComponents
Sections
  • Components
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

Checkbox

PreviousNext

Toggles a single option on or off.

<rl-checkbox>Accept terms</rl-checkbox>

Examples#

Checked#

<rl-checkbox checked>Selected</rl-checkbox>

Disabled#

<rl-checkbox disabled>Unavailable</rl-checkbox>

API#

PropTypeDefaultDescription
checkedbooleanfalseSelected state.
disabledbooleanfalsePrevents interaction.
labelstring—Accessible label.
namestring—Form name.
valuestring—Submitted value.
readonlybooleanfalseVisible but not editable.
Cell linkCollapse

On This Page

ExamplesCheckedDisabledAPI
Built by shadcn at Vercel. The source code is available on GitHub.