Calendar View
Month/week/day calendar view with event slots.
Preview
January 2026
Mon
Tue
Wed
Thu
Fri
Sat
Sun
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
Usage
views.py
python
from djust import LiveView
from djust.components import CalendarView
class MyView(LiveView):
template_name = "my_template.html"
def mount(self, request, **kwargs):
self.component = CalendarView()my_template.html
django
{{ component }}Parameters
| Name | Type | Default |
|---|---|---|
| events | list | None | None |
| month | int | 1 |
| year | int | 2026 |
| view | str | 'month' |
| start_day | int | 0 |
| event | str — renames the event; identity is `name` | '' |
| custom_class | str | '' |
| **kwargs | — passed to `Component.__init__`: `name=` identifies the instance in the events it sends, `id=` sets `component.id`, and any other keyword is kept as state | — |
Source & styles
| File | Path | Notes |
|---|---|---|
| module | djust.components.components.calendar_view | Subclass it, or pass custom_class, to change how it renders. |
| css | djust_components/components.css | Defines 10 of this component's classes at line 2155, 2156, 2157, 2158, 2159, 2160, 2162, 2163, 2423, 2424. Override those rules, or the custom properties they read, in a stylesheet loaded after it. |