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

BigCalendar

Full-viewport monthly calendar grid with event bars, multi-day spanning, overflow indicators, and keyboard navigation.

Installation

tsx
import { BigCalendar, type CalendarEvent } from "madagent";

Default

December 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2

With Events

December 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2

Multi-Day Events

December 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2

Color Variants

December 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2

Overflow (+N more)

December 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2

Controlled Navigation

Viewing: December 2026

December 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2

Hijri Calendar

December 2026 | جمادى الآخرة/رجب ١٤٤٨

Sun
Mon
Tue
Wed
Thu
Fri
Sat
29١٩
30٢٠
1٢١
2٢٢
3٢٣
4٢٤
5٢٥
6٢٦
7٢٧
8٢٨
9٢٩
10رجب
11٢
12٣
13٤
14٥
15٦
16٧
17٨
18٩
19١٠
20١١
21١٢
22١٣
23١٤
24١٥
25١٦
26١٧
27١٨
28١٩
29٢٠
30٢١
31٢٢
1٢٣
2٢٤
PropTypeDefaultDescription
events
CalendarEvent[]
[]Array of calendar events to display
month
number
-Controlled month (0–11)
year
number
-Controlled year
defaultMonth
number
-Default month for uncontrolled mode (0–11)
defaultYear
number
-Default year for uncontrolled mode
onMonthChange
(month: number, year: number) => void
-Called when the displayed month changes
onEventClick
(event: CalendarEvent) => void
-Called when an event bar is clicked
onDateClick
(date: Date) => void
-Called when a date cell is clicked
secondaryCalendar
"hijri"
-Show secondary Hijri calendar dates with Arabic-Indic numerals and Hijri month names on the first of each Hijri month
maxVisibleEvents
number
3Max event bars per cell before showing "+N more"
className
string
-Additional CSS class on the root element

CalendarEvent Type

PropTypeDefaultDescription
id*
string
-Unique identifier for the event
title*
string
-Display title for the event bar
start*
Date
-Event start date
end*
Date
-Event end instant. It is an inclusive calendar date when allDay is true; a timed local-midnight end is exclusive.
color
"accent""info""positive""warning""negative""chart1""chart2""chart3""chart4""chart5"
"accent"Semantic color for the event bar
allDay
boolean
-Marks an all-day event and makes a multi-day end date inclusive

Event Duration Semantics

Set allDay: true for all-day events. Its end is an inclusive calendar date, so an event from March 10 through March 12 renders on all three days.

Timed events omit allDay. When their end falls at local midnight, that end is exclusive: a timed event ending at 12:00 AM on March 12 renders through March 11, not March 12.

Migration: add allDay: true to existing date-only events whose midnight end should remain inclusive.

RTL Support

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

Preview

ديسمبر 2026

أحد
إثنين
ثلاثاء
أربعاء
خميس
جمعة
سبت
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2

Usage

tsx
<BigCalendar events={events} />