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

Wizard

A multi-step stacked dialog for onboarding flows, setup wizards, and guided processes.

Installation

tsx
import { Wizard, WizardStep, WizardFooter, WizardBack, WizardNext } from "madagent";

Basic

With Description

Sizes

RTL Support

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

Preview

Usage

tsx
<Wizard open={open} onClose={() => setOpen(false)} dir="rtl">
  <WizardStep title="إنشاء حساب" description="أدخل بياناتك للبدء">
    <p>اختر الحسابات التي تريد ربطها.</p>
    <WizardFooter>
      <WizardBack>رجوع</WizardBack>
      <WizardNext>التالي</WizardNext>
    </WizardFooter>
  </WizardStep>
</Wizard>

Wizard

PropTypeDefaultDescription
open
boolean
-Controls whether the wizard is visible
onClose
() => void
-Called when the wizard should close
defaultStep
number
0Initial step index
size
"sm""md""lg"
"md"Dialog width
closable
boolean
trueWhether close button, Escape, and overlay click are enabled
children
ReactNode
-WizardStep elements

WizardStep

PropTypeDefaultDescription
title
ReactNode
-Step heading in the header
description
string
-Subtitle below the title
children
ReactNode
-Step content and optional WizardFooter

WizardFooter

PropTypeDefaultDescription
children
ReactNode
-Footer content — typically WizardBack and WizardNext

WizardBack

PropTypeDefaultDescription
children
ReactNode
"Back"Custom label

WizardNext

PropTypeDefaultDescription
children
ReactNode
"Next" / "Done"Custom label — defaults to Done on last step