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
  • GanttChart
  • Hotkey
  • Icon
  • Input
  • Kanban
  • 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

Get started with madagent

An accessible React design system with 62 components, 19 themes, and right-to-left support built in. Change the props below to see how a component behaves, then copy the code.

Size
tsx
<Button>
  Save changes
</Button>

Install

  1. Install the package

    React and ReactDOM are peers. Lucide supplies icons; Recharts powers the charts.

    bash
    npm install madagent react react-dom lucide-react recharts
  2. Add the styles and provider

    Import the stylesheet once and wrap your app. The provider sets every token as a CSS variable, so components pick up the theme without extra wiring.

    app.tsx
    import { ThemeProvider } from "madagent";
    import "madagent/styles";
    
    export function App({ children }) {
      return (
        <ThemeProvider theme="blue" mode="light">
          {children}
        </ThemeProvider>
      );
    }
  3. Use a component

    Everything is a named export with typed props.

    checkout.tsx
    import { Button, Field, Input } from "madagent";
    
    <Field label="Email">
      <Input type="email" placeholder="you@example.com" />
    </Field>
    <Button>Continue</Button>

Find a component

Each page has live examples, a props table, and a right-to-left demo.

  • Checkbox

    Checkbox with label, description, indeterminate state, and multiple layout variants.

  • Combobox

    Searchable single-select input for local or asynchronously filtered datasets.

  • We never share it.
    Field

    Validation-agnostic label, help, error, and accessibility wiring for form controls.

  • FileUpload

    Transport-agnostic dropzone and file list with validation and progress display.

  • FormGrid

    Responsive one-to-four-column layout for consistent enterprise forms.

  • Input

    Text input with label, helper text, error state, and icon slots.

  • MultiSelect

    Searchable multi-value selection with removable chips and overflow collapsing.

  • NumberInput

    Accessible numeric text input with clamping, precision, adornments, and steppers.

  • Radio

    Radio group with label and description support.

  • Select

    Dropdown select with search, custom options, and controlled/uncontrolled modes.

  • SelectionCard

    Card-based selection input for visually rich single or multi-choice options.

  • Slider

    Range input for selecting a value from a continuous set with labels and marks.

  • Switch

    Toggle control for switching between on and off states.

  • Textarea

    Multi-line text input with character counter, resize control, and validation.

  • TransferList

    Dual searchable listboxes for assigning and removing sets of options.

How it's built

Open a principle to try it. For colors, spacing, and type, see Design tokens.

Keyboard behavior, focus management, and ARIA roles are built into every component, so you don't wire them up per screen.

Click a plan, then use ↑ and ↓ to move between them.

Plan
1 seat
Up to 10 seats
Unlimited seats

19 OKLCH color themes, each with light and dark modes, are delivered as CSS variables. There's no runtime CSS-in-JS.

Switch the mode. Every surface, border, and text color on this page comes from the same token set.

Components use logical CSS properties. Set dir="rtl" and layout, icons, and arrow keys mirror automatically.

The package ships Markdown references listing every prop and token, so Claude Code, Cursor, and Copilot use the real API.

Each component has an entry like this in agents/components.md, so an agent writes variant="outline" instead of guessing kind="bordered".

## Chip
variant  solid | muted
color    primary | success | warning | error | neutral | secondary
size     sm | md | lg
props    icon, iconPosition, onRemove, removeLabel