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

Breadcrumb

A navigation aid that shows the user's location within a site hierarchy.

Installation

tsx
import { Breadcrumb, BreadcrumbItem } from "madagent";

Default

  1. Home
  2. Documentation
  3. Breadcrumb

Two Levels

  1. Home
  2. Settings

Deep Navigation

  1. Home
  2. Products
  3. Electronics
  4. Phones
  5. iPhone 16 Pro

Breadcrumb Props

PropTypeDefaultDescription
children
ReactNode
-BreadcrumbItem elements
className
string
-Additional CSS class

BreadcrumbItem Props

PropTypeDefaultDescription
href
string
-URL to navigate to. Omit for the current (last) page.
children
ReactNode
-Item label content
className
string
-Additional CSS class

RTL Support

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

Preview

  1. الرئيسية
  2. التوثيق
  3. المكونات

Usage

tsx
<Breadcrumb>
  <BreadcrumbItem href="/">الرئيسية</BreadcrumbItem>
  <BreadcrumbItem href="/docs">التوثيق</BreadcrumbItem>
  <BreadcrumbItem>المكونات</BreadcrumbItem>
</Breadcrumb>