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

Spinner

An accessible indeterminate progress indicator for operations without a known completion percentage.

Default

An accessible indeterminate loading status.

Loading account balances
tsx
<Spinner label="Loading account balances" />

Installation

tsx
import { Spinner } from "madagent";

Sizes

Three sizes cover compact controls, standard surfaces, and prominent loading states.

Loading small itemLoading itemLoading large item
tsx
<Spinner size="sm" />
<Spinner size="md" />
<Spinner size="lg" />

Button loading

Button uses Spinner internally and exposes aria-busy on the button.

tsx
<Button loading>Saving</Button>

Props

PropTypeDefaultDescription
size
"sm""md""lg"
"md"Spinner diameter
label
string
"Loading"Visually hidden accessible status label

RTL Support

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

Preview

جار تحميل الأرصدةجار تحميل الأرصدة…

Usage

tsx
<div style={{ display: "flex", gap: "0.5rem" }}>
  <Spinner label="جار تحميل الأرصدة" />
  جار تحميل الأرصدة…
</div>