DocsGitHub
Getting Started
  • Overview
  • Design Tokens
Components
  • Accordion
  • Alert
  • Announcement
  • Avatar
  • Badge
  • BigCalendar
  • Breadcrumb
  • Button
  • ButtonGroup
  • Calendar
  • Card
  • Checkbox
  • Chip
  • CloseButton
  • Combobox
  • CommandPalette
  • ContextMenu
  • Currency
  • DatePicker
  • DescriptionList
  • Drawer
  • DropdownMenu
  • EmptyState
  • Field
  • FileUpload
  • FormGrid
  • Hotkey
  • Icon
  • Input
  • Metric
  • Modal
  • MultiSelect
  • NumberInput
  • Pagination
  • Popover
  • ProgressBar
  • Radio
  • Rating
  • SegmentedControl
  • Select
  • SelectionCard
  • Sidebar
  • Skeleton
  • Slider
  • Spinner
  • Stepper
  • Switch
  • Table
  • Tabs
  • Textarea
  • Timeline
  • TimePicker
  • Toast
  • Tooltip
  • TransferList
  • TreeView
  • Wizard
Charts
  • Overview
  • Area Chart
  • Bar Chart
  • Donut Chart
  • Line Chart
  • Pie Chart
  • Stacked Bar Chart

Checkbox

A control that allows the user to toggle between checked, unchecked, and indeterminate states.

Installation

tsx
import { Checkbox, CheckboxGroup } from "madagent";

Default

Variants

With Subtitle and Description

Recommended
Receive email updates about your account activity

Indeterminate

Checkbox Group

Notifications

Horizontal Group

Sizes

Disabled

PropTypeDefaultDescription
label
ReactNode
-Label text displayed next to the checkbox
subtitle
string
-Secondary text next to the label
description
string
-Description text below the control
indeterminate
boolean
falseShows indeterminate (minus) state
variant
"default""todo"
"default"Visual variant
disabled
boolean
falseDisables the checkbox

RTL Support

Components automatically adapt to right-to-left languages using CSS logical properties.

Preview

تفضيلات الإشعارات

Usage

tsx
<CheckboxGroup legend="تفضيلات الإشعارات">
  <Checkbox label="تفعيل الإشعارات" defaultChecked />
  <Checkbox label="إرسال رسائل بريد إلكتروني" />
  <Checkbox label="إشعارات الهاتف المحمول" defaultChecked />
</CheckboxGroup>