Basic Usage
Range Selection
Setmode="range" to let users select a start and end date. The selected range is stored as a JSON object with from and to ISO strings.
Multiple Selection
Select multiple individual dates withmode="multiple". Selected dates are stored as a JSON array of ISO strings.
Displaying the Selection
Bind the calendar’s state to a label using{{ name | date }} to show a formatted date. Click a date below to see it update:
The label updates instantly when the user clicks a date. The date:long format turns an ISO string like "2025-01-15" into "January 15, 2025".
API Reference
Calendar Parameters
Selection mode:
"single", "multiple", or "range".State key for storing the selected date. Single mode stores an ISO string; range mode stores
{"from": "...", "to": "..."}.Action(s) triggered when the selection changes.
Additional Tailwind CSS classes.
Protocol Reference
Calendar