Skip to the page
Tactile UI

Kit parts

Date picker

A date field with its calendar card in a slot underneath: type a date in any common form for your locale, or press the key and the card slides out. Single dates and ranges; shown the Intl way, posted as ISO.

On this page
  1. Anatomy
  2. Variants
  3. States
  4. Props and options
  5. Usage notes
  6. Accessibility
  7. Related parts

Seats open in 11 days. Want one email that morning?

Anatomy

Reading a typed date asks Intl for the locale’s order of day, month and year and for its month names (long and short, accents folded, English as a fallback), then checks the date is real.

Variants

  • Single date
  • Range · stays and holds
  • Locale · de-DE
  • Locale · en-US

States

  • Rest
  • Focus
  • Card out
  • Error

Props and options

NameKindDescription
labelattributeThe printed label over the well; it names the field.
nameattributeAdds a hidden input that posts the value as ISO.
valueattribute · propertyThe committed date. Shown in the field the locale’s way.
modeattributeTwo dates. The card asks for the first day, then the last.
localeattributeHow dates are shown and read, and the week’s first day in the card.
min · maxattributePassed to the calendar; typed dates outside get a hint naming the bounds.
disabled-weekdays · disabled-datesattributeClosed days, in the card and when typed.
hintattributeThe hint under the well when all is well.
requiredattributeMarks the visible input required.
show() · close()methodSlide the card out, or back into its slot.
changeeventA date, or a whole range, was committed: typed or picked.
EnterkeyboardRead what was typed.
Alt+DownkeyboardOpen the card (plain Down works in an empty field).
EscapekeyboardClose it and return to the calendar key.
Calendar keyskeyboardEverything the calendar takes: arrows, Home/End, PageUp/PageDown, Enter.

Usage notes

Escape puts the card back.

Accessibility

  • Opening moves the focus to the chosen day (or today) in the grid; picking returns it to the field, Escape to the key.
  • In range mode a polite line in the card says what to pick next: the first day, then the last.

Calendar

A month on a plate. The month and year sit on two drums behind a window and roll when you page; the chosen day is a latched cap, a range is a groove cut between two caps, and events are lamps named in the line below.

Field

Text entry in a recess, the label printed above it, and a hint that says how to fix an error.

Combo

One field with its one action in a shared well: subscribe, search, add.