Datepicker

Native <input type="date"> element. Zero JavaScript, fully accessible, keyboard navigable — the browser provides the date picker UI.

Single Date

<label for="date">Select a date</label>
<input type="date" id="date">

Date Range

<label for="start">Start</label>
<input type="date" id="start">
<label for="end">End</label>
<input type="date" id="end">

With Constraints

<!-- min / max constrain selectable dates -->
<input type="date" min="2024-01-01" max="2024-12-31">

Other Date/Time Types

Input typeWhat it showsExample
dateDay / Month / Year<input type="date">
timeHours / Minutes<input type="time">
datetime-localDate + time combined<input type="datetime-local">
monthMonth / Year only<input type="month">
weekWeek number / Year<input type="week">

Accessibility

  • Always include a <label> — placeholder is not a label
  • Native <input type="date"> is fully keyboard accessible in all modern browsers
  • Use min and max to constrain dates — don't rely on JS validation alone
  • Add autocomplete="bday" or similar to help password managers and users

Features

  • Semantic Structure - Built with native HTML5 elements for maximum reliability.
  • Theme Aware - Automatically adapts to all 22 Axiom01 themes via OKLCH tokens.
  • Fully Responsive - Scales perfectly from mobile to desktop screens.
  • No JS Dependency - Core functionality relies on pure CSS for maximum performance.
  • Customizable - Easily extendable via Axiom01's design tokens and modifiers.

Use Cases

The Datepicker component is designed for versatile implementation across modern web applications. Ideal scenarios include:

  • Dashboards & Admin Panels - Structured data presentation and interface control.
  • Content Management Systems - Organizing complex information hierarchies and media.
  • E-Commerce Platforms - Enhancing product discovery and user workflows.
  • Marketing Sites - Highlighting key product offerings cleanly and effectively.
  • SaaS Applications - Delivering native-feeling, responsive app experiences.