Svelte UI

Date & Time Component

DatePicker

Custom popup calendar — single, datetime, and range modes. In time mode the time part is a compact stepper (1-min steps by default; set step / seconds).

Single date
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
2026-08-08
Date + time
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
9
:
30
AM
/
2026-08-08T09:30
Range
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
2026-08-06 → 2026-08-12

TimePicker

Input-framed trigger → a themed popup (no native time popup): a compact iOS-style stepper. meridiem toggles 12h / 24h (24h drops AM/PM); step is the minute interval or a per-column hour/minute/second object; min/max bound it; seconds adds a seconds column.

1-min (default)
9
:
30
AM
09:30
24h (no AM/PM), 15-min
14
:
00
14:00
24h · 09:00–17:00 bounds
09
:
00
seconds · per-column step
9
:
30
:
15
AM
09:30:15

TimeRangeInput

A time interval — two compact steppers (Start / End) in one popup, cross-bounded so End can't precede Start.

seeded
Start
9
:
00
AM
End
5
:
00
PM
09:00 → 17:00
empty
Start
12
:
00
AM
End
12
:
00
AM
— → —

Variants

The variant accents the selection, actions, and focus in the popup.

success
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
danger
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
warning
1
:
30
PM

DateTimeInput

Wraps the native control so the field matches every other Input (frame/height/border); the popup is the browser's. type selects the picker.

datetime-local
2026-08-08T09:30
date
2026-08-08
time
09:30

Sizes

sm
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
md
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
lg
August 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat