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

Skeleton

A decorative loading placeholder for text, media, and table content.

Default

Text skeletons render one or more placeholder lines.

tsx
<Skeleton lines={3} />

Installation

tsx
import { Skeleton } from "madagent";

Variants

Choose text, rectangular, or circular geometry.

tsx
<Skeleton variant="text" lines={3} />
<Skeleton variant="rect" height="8rem" />
<Skeleton variant="circle" width="3rem" height="3rem" />

Loading region

Skeleton is decorative. Put loading semantics on the surrounding region.

tsx
<div aria-busy="true" aria-label="Loading invoices">
  <Skeleton lines={4} />
</div>

Props

PropTypeDefaultDescription
variant
"text""rect""circle"
"text"Placeholder geometry
width
string
-Logical inline size as a CSS length
height
string
-Logical block size as a CSS length
lines
number
1Number of stacked lines for text skeletons

RTL Support

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

Preview

Usage

tsx
<div aria-busy="true" aria-label="جار تحميل الفواتير">
  <Skeleton lines={4} />
</div>