A flexible calendar component for date selection. Supports single dates, multiple dates, and date ranges. Perfect for scheduling and booking systems.
|
Select multiple non-consecutive dates.
Select a range of dates.
Adjust the calendar's size to fit your layout. Available sizes include xs, sm, lg, xl, and 2xl.
Restrict the selectable date range by setting minimum and maximum boundaries.
Disable specific dates from being selected. Useful for blocking out holidays, showing booked dates, or indicating unavailable time slots.
Add a shortcut button to quickly navigate to today's date. When viewing a different month, it jumps to the current month. When already viewing the current month, it selects today's date.
Enable quick navigation by making the month and year in the header selectable.
Display a consistent number of weeks in every month. Prevents layout shifts when navigating between months with different numbers of weeks.
By default, the first day of the week will be automatically set based on the user's locale. You can override this by setting the start-day attribute to any day of the week.
Set the date that the calendar will open to. Otherwise, the calendar defaults to the selected date's month, or the current month.
By default, the calendar will use the document's locale (e.g. <html lang="en-US">), otherwise, it will use the browser's locale (e.g. navigator.language).
You can override this behavior by setting the locale attribute to any valid locale string (e.g. fr for French, en-US for English, etc.):