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

Icon

A wrapper around Lucide icons with consistent sizing and color tokens.

Installation

tsx
import { Icon } from "madagent";

Default

Sizes

Colors

With Label (Accessible)

PropTypeDefaultDescription
icon*
LucideIcon
-Lucide icon component to render
size
"xs""sm""md""lg""xl"
"md"Icon size
color
"current""primary""secondary""success""warning""error""muted"
"current"Icon color
label
string
-Accessible label. When provided, icon gets role=img

RTL Support

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

Preview

Usage

tsx
<div style={{ display: "flex", gap: 16, justifyContent: "center" }}>
  <Icon icon={Star} size="lg" color="primary" label="نجم" />
  <Icon icon={Heart} size="lg" color="error" label="قلب" />
  <Icon icon={Share2} size="lg" color="secondary" label="مشاركة" />
</div>