Skip to main content

Date Picker

Date selection. Angular provides a rich picker; HTML and React use the native <input type="date">.

Preview ยท Date Picker

Codeโ€‹

<div class="vstack" style="max-width:280px">
<label>Start Date <input type="date" /></label>
<label>Contract Date <input type="date" min="2026-01-01" max="2026-12-31" /></label>
<div data-field="error">
<label>Expiry <input type="date" aria-invalid="true" /></label>
<span class="error">Please select a valid date.</span>
</div>
</div>

Propsโ€‹

PropTypeDefaultDescription
labelstring''Label text
value`stringnull`null
minstringโ€”Min date
maxstringโ€”Max date
errorstring''Error message

Accessibilityโ€‹

  • Uses <input type="date"> โ€” natively accessible and keyboard operable
  • Screen readers announce the full date when selected
  • Add aria-label when the visual label is not adjacent to the input
  • Min/max attributes prevent out-of-range dates from being submitted
Version history

See the Changelog for version history and breaking changes.