DateInput
A date or time field that takes a typed value or a pick from a calendar, and always shows the user’s timezone.
When to use
Section titled “When to use”- Use it for schedules, deadlines and report ranges. Recurring schedules use
Selectpresets first, with a cron field behind “Custom”.
What the consumer provides
Section titled “What the consumer provides”label, adescriptionwith the timezone (“Europe/Amsterdam”),value,onChangeandminDate/maxDate.valueFormat“D MMM YYYY”. Times use 24h with 5-minute steps, unless the locale says otherwise.- For ranges, use two fields or a range calendar. The chosen span shows on
surface-selected.
Behaviour
Section titled “Behaviour”- The field accepts typed text and reads it (“tomorrow”, “20 oct”). The calendar opens on the icon or on focus. It uses
surface-100,border,shadow-smandradius-lg. - Days are 34px buttons. Today has a
border-strongring. The chosen day fillsemerald-deep. Disabled days areink-disabledand say why on hover. - Arrow keys move by day and PageUp/PageDown by month. Enter picks and Escape closes.
Tokens
Section titled “Tokens”As TextInput, plus emerald-deep, ink-on-brand, surface-selected, border-strong, ink-disabled, shadow-sm, radius-lg, radius-sm.
Mantine
Section titled “Mantine”@mantine/dates: <DateInput valueFormat="D MMM YYYY" minDate popoverProps={{ shadow: 'sm', radius: 'lg' }} />, <TimeInput />, <DatePickerInput type="range" />.