Month Grid

Month navigation, weekday header and a selectable day grid. The shared atom behind Date picker and the Calendar sidebar mini-calendar.

import{ MonthGrid } from "@pepulux/ui"

Default

October 2026
MoTuWeThFrSaSu

Pick a day

Event dots and compact size

October 2026
MoTuWeThFrSaSu

Props

PropTypeDefaultDescription
selectedDate | null—Selected day
onSelect(date: Date) => void—Called when a day is clicked
eventDatesDate[]—Days that show a dot under the number
todayDate—Highlighted as today; defaults to now
defaultMonthDate—Month shown first; defaults to the selected day, then today
size"sm" | "md""md"32px (sidebar) or 40px (popup) day cells
classNamestring—Additional CSS classes
Base component → Date pickerswww.pepulux.com

Notes and documentation

Space for notes, documentation, and best practices for using these components.

A month at a glance

The month grid is the shared building block of the date picker and the calendar sidebar. Weeks start on Monday and days outside the month are dimmed.