Date calendar with drill-down month/year navigation, range picking, date picker popover, and min/max constraints.
Click a day to select it, or the title to jump by month and year.
<div class="sui-calendar" data-sui-calendar="single">
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-grid"></div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>Click a start date, then an end date.
<div class="sui-calendar" data-sui-calendar="range">
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-grid"></div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>Two months side by side for ranges that span months.
<div class="sui-calendar" data-sui-calendar="range">
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-months">
<div class="sui-calendar-month">
<div class="sui-calendar-title" style="justify-content:center;margin-bottom:8px;font-size:13px;font-weight:600;color:var(--sui-text);"></div>
<div class="sui-calendar-grid"></div>
</div>
<div class="sui-calendar-month">
<div class="sui-calendar-title" style="justify-content:center;margin-bottom:8px;font-size:13px;font-weight:600;color:var(--sui-text);"></div>
<div class="sui-calendar-grid"></div>
</div>
</div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>A calendar in a popover that closes on selection.
<div class="sui-datepicker">
<button class="sui-datepicker-trigger" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
<span class="sui-datepicker-placeholder">Pick a date</span>
</button>
<div class="sui-datepicker-popover">
<div class="sui-calendar" data-sui-calendar="single">
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-grid"></div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>
</div>
</div>A popover date picker in range mode.
<div class="sui-datepicker">
<button class="sui-datepicker-trigger" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
<span class="sui-datepicker-placeholder">Pick a date range</span>
</button>
<div class="sui-datepicker-popover">
<div class="sui-calendar" data-sui-calendar="range">
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-grid"></div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>
</div>
</div>Add data-sui-calendar-time for 12-hour time or data-sui-calendar-time="24h" for 24-hour.
<!-- 12-hour format (default) -->
<div class="sui-datepicker">
<button class="sui-datepicker-trigger" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
<span class="sui-datepicker-placeholder">Pick date & time (12h)</span>
</button>
<div class="sui-datepicker-popover">
<div class="sui-calendar" data-sui-calendar="single" data-sui-calendar-time>
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-grid"></div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>
</div>
</div>
<!-- 24-hour format -->
<div class="sui-datepicker">
<button class="sui-datepicker-trigger" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
<span class="sui-datepicker-placeholder">Pick date & time (24h)</span>
</button>
<div class="sui-datepicker-popover">
<div class="sui-calendar" data-sui-calendar="single" data-sui-calendar-time="24h">
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-grid"></div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>
</div>
</div>Constrain dates with data-sui-min / data-sui-max.
<div class="sui-calendar" data-sui-calendar="single"
data-sui-min="today"
data-sui-max="2030-12-31">
<div class="sui-calendar-header">
<button class="sui-calendar-nav-btn" data-sui-calendar-prev type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
</button>
<div class="sui-calendar-title"></div>
<button class="sui-calendar-nav-btn" data-sui-calendar-next type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>
</button>
</div>
<div class="sui-calendar-grid"></div>
<button class="sui-calendar-clear" data-sui-calendar-clear type="button">Clear</button>
</div>
<!-- Supported values for data-sui-min / data-sui-max:
"today" — relative to current date
"2026-03-15" — specific date (YYYY-MM-DD)
You can also disable specific dates:
data-sui-disabled="2026-03-25,2026-04-01"
-->A standalone time picker without a calendar.
12-hour
24-hour
<!-- 12-hour time picker -->
<div class="sui-timepicker" data-sui-timepicker></div>
<!-- 24-hour time picker -->
<div class="sui-timepicker" data-sui-timepicker="24h"></div>
<!-- Listen for changes -->
<script>
document.querySelector('.sui-timepicker').addEventListener('sui-time-change', function(e) {
console.log(e.detail); // { hour: 2, minute: 30, period: 'PM', is24h: false }
});
</script>| Attribute / Event | Description |
|---|---|
data-sui-calendar="single|range" | Turns the element into a calendar. Click the title to drill into month and year views. |
data-sui-calendar-time | Adds hour and minute inputs (12-hour with AM/PM; "24h" for 24-hour). Arrow keys step the values, and a popover stays open after picking a date. |
data-sui-min / data-sui-max | "today" or a YYYY-MM-DD date. Dates outside the range are disabled. |
data-sui-disabled | Comma-separated YYYY-MM-DD dates to disable. |
sui-datepicker | Wraps a trigger and a popover calendar. Picking a date (or a full range) closes the popover and fills the trigger. |
data-sui-timepicker | Standalone time picker (12-hour; "24h" for 24-hour). Arrow keys step the values. |
sui-date-select | Fires on the calendar with detail.date (plus hour, minute, period, is24h when time is on), or detail.start / end in range mode. |
sui-date-clear | Fires on the calendar when Clear is pressed. |
sui-time-change | Fires on change with detail.hour, minute, period, is24h; bubbles. |
This is a neumorphic modal dialog. It features backdrop blur, smooth animations, and focus trap. Press Escape or click outside to close.
Your session will expire in 5 minutes. Would you like to stay signed in?
This action cannot be undone. This will permanently delete the item and remove all associated data.
This modal takes up the entire viewport. Useful for immersive content, editors, or media viewers.
Press Escape or click the close button to dismiss.
By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement. In addition, when using these particular services, you shall be subject to any posted guidelines or rules applicable to such services. Any participation in this service will constitute acceptance of this agreement.
Permission is granted to temporarily download one copy of the materials on this website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not modify or copy the materials, use the materials for any commercial purpose, attempt to reverse engineer any software, or remove any copyright notations.
The materials on this website are provided on an 'as is' basis. We make no warranties, expressed or implied, and hereby disclaim and negate all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property.
In no event shall this company or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials, even if we have been notified orally or in writing of the possibility of such damage.
The materials appearing on this website could include technical, typographical, or photographic errors. We do not warrant that any of the materials on its website are accurate, complete or current. We may make changes to the materials contained on its website at any time without notice.
We have not reviewed all of the sites linked to this website and are not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement. Use of any such linked web site is at the user's own risk.
We may revise these terms of service for this website at any time without notice. By using this website you are agreeing to be bound by the then current version of these terms of service. Any changes will be posted on this page with an updated revision date.
These terms and conditions are governed by and construed in accordance with applicable laws and you irrevocably submit to the exclusive jurisdiction of the courts in that location. If any provision of these terms shall be unlawful, void, or unenforceable, then that provision shall be deemed severable and shall not affect the validity of the remaining provisions.
Clicking outside this modal won't close it. Instead, the modal will shake to indicate it requires explicit action. Pressing Escape shakes it too — use the close button or an action to dismiss.
This modal has no backdrop blur. The background is visible but dimmed.
A subtle 3px backdrop blur. Content behind is slightly softened.
A heavy 12px backdrop blur. Background is barely recognizable.
Maximum 20px blur. Background is fully frosted.
This is a default right-side sheet. It slides in from the right edge of the screen with a blurred backdrop.
Sheets are great for navigation menus, settings panels, detail views, and forms that don't need to interrupt the main content flow.
This sheet slides down from the top. Great for announcements, notification panels, or search interfaces.
This is a small (280px) right-side sheet.
This is a large (480px) right-side sheet. Great for forms, detail views, or complex content.
Clicking outside this sheet won't close it. The sheet will shake to indicate it requires explicit action. Pressing Escape shakes it too. Use the close button to dismiss.