<div class="ilui-example ilui-core-demo"><section class="ilui-card ilui-calendar" data-ilui-calendar="single" aria-labelledby="ilui-inline-calendar-month">
<header class="ilui-card__header ilui-card__part--flush ilui-calendar__header">
<button class="ilui-button ilui-button--compact ilui-button--icon ilui-calendar__previous" type="button"
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Date range
Select two endpoints and see every included day.
Select a start and end date.
<div class="ilui-example ilui-core-demo"><section class="ilui-card ilui-calendar" data-ilui-calendar="range" aria-labelledby="ilui-inline-range-month">
<header class="ilui-card__header ilui-card__part--flush ilui-calendar__header">
<button class="ilui-button ilui-button--compact ilui-button--icon ilui-calendar__previous" type="button"
Unavailable days
Keep weekends visible while only accepting workdays.
<div class="ilui-example ilui-core-demo"><section class="ilui-card ilui-calendar" data-ilui-calendar="single" data-ilui-unavailable="weekends" aria-labelledby="ilui-workday-calendar-month">
<header class="ilui-card__header ilui-card__part--flush ilui-calendar__header">
<button class="ilui-button ilui-button--compact ilui-button--icon ilui-calendar__previous" type="button"
Usage
| Navigation | Tab into the calendar and use arrows to move by day or week. Home and End move within the week. Page Up and Page Down change month. |
|---|
| Unavailable dates | Use data-ilui-unavailable="weekends" to demonstrate a blocked schedule. Blocked days remain readable as you explore the grid. |
|---|
| Values | Listen for ilui:date-change. Its detail provides start and end as local calendar dates in YYYY-MM-DD form. |
|---|