# `PhoenixLiveCalendar.Views.NDayView`
[🔗](https://github.com/mdon/phoenix_live_calendar/blob/v0.5.0/lib/phoenix_live_calendar/views/n_day_view.ex#L1)

N-day view — shows an arbitrary number of day columns.

This is the flexible view that handles 3-day, 4-day, 10-day, or any
custom day count. Uses `WeekGrid` internally with computed dates.

# `n_day_view`

Renders an N-day time grid view.

## Attributes

- `date` — Start date of the view
- `days` — Number of days to display
- All other attributes are passed through to `WeekGrid.week_grid/1`

## Attributes

* `date` (`Date`) (required)
* `id` (`:string`) - Defaults to `nil`.
* `days` (`:integer`) (required)
* `events` (`:list`) - Defaults to `[]`.
* `selected_date` (`Date`) - Defaults to `nil`.
* `today` (`:any`) - Date | nil (server today) | :none (no today highlight). Defaults to `nil`.
* `min_time` (`Time`) - Defaults to `~T[00:00:00]`.
* `max_time` (`Time`) - Defaults to `~T[23:59:59]`.
* `slot_duration` (`:integer`) - Defaults to `30`.
* `slot_height` (`:string`) - Defaults to `"3rem"`.
* `show_now_indicator` (`:boolean`) - Defaults to `true`.
* `now` (`Time`) - Defaults to `nil`.
* `show_all_day_row` (`:boolean`) - Defaults to `true`.
* `business_hours` (`:list`) - Defaults to `[]`.
* `day_markers` (`:list`) - Defaults to `[]`.
* `event_content` (`:atom`) - Defaults to `:auto`.
* `min_event_height` (`:string`) - Defaults to `"1.25rem"`.
* `on_date_click` (`:any`) - Defaults to `nil`.
* `on_time_click` (`:any`) - Defaults to `nil`.
* `on_event_click` (`:any`) - Defaults to `nil`.
* `translations` (`:map`) - Defaults to `%{}`.
* `time_format` (`:atom`) - Defaults to `:h24`.
* `class` (`:string`) - Defaults to `""`.
* `dir` (`:atom`) - Defaults to `:ltr`.
## Slots

* `event`
* `time_label`

---

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