# `PhoenixLiveCalendar.Components.MiniCalendar`
[🔗](https://github.com/mdon/phoenix_live_calendar/blob/v0.5.0/lib/phoenix_live_calendar/components/mini_calendar.ex#L1)

A compact month calendar used in year view and as a sidebar date picker.

# `mini_calendar`

Renders a compact mini calendar for a given month.

## Attributes

- `date` — A date within the target month
- `selected_date` — Currently selected date (highlighted)
- `today` — Today's date (for "today" indicator)
- `events_by_date` — Map of `%{Date.t() => [Event.t()]}` for dot indicators
- `markers_by_date` — Map of `%{Date.t() => [DayMarker.t()]}`; a marker's
  custom `color` tints the mini cell (heatmap intensity at year scale)
- `on_date_click` — Event handler for date clicks
- `week_start` — First day of week (1-7, default: 1)
- `translations` — Translation overrides
- `class` — Additional CSS classes
- `show_header` — Show month/year header (default: true)

## Attributes

* `date` (`Date`) (required)
* `selected_date` (`Date`) - Defaults to `nil`.
* `today` (`:any`) - Date | nil (server today) | :none (no today highlight). Defaults to `nil`.
* `events_by_date` (`:map`) - Defaults to `%{}`.
* `markers_by_date` (`:map`) - Defaults to `%{}`.
* `on_date_click` (`:any`) - Defaults to `nil`.
* `week_start` (`:integer`) - Defaults to `1`.
* `translations` (`:map`) - Defaults to `%{}`.
* `class` (`:string`) - Defaults to `""`.
* `show_header` (`:boolean`) - Defaults to `true`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
