API reference

Attributes

AttributeValuesDefaultDescription
valueISO string""Single selection value
range-start / range-endISORange mode initial values
selectionsingle | rangesingleOne date vs start–end range
modedatetime | datedatetimeInclude time picker or not
value-typeiso | timestamp | objectisoEmitted detail.value shape
display-formatshort | long | numeric | iso | customshortTrigger / NL display
custom-date-formattokensDD/MM/YYYYWith display-format="custom"
display-modepopover | inlinepopoverToggle vs always open
time-format12 | 2412Time display
min / maxISOSelectable bounds (not a range value)
disabledbooleanfalseDisable interaction
labelstringVisible label
themelight | darkOSForce color theme
placeholderstringSingle static placeholder (if no hints)
placeholder-hintspipe-separatedbuilt-in listRotating placeholders in the main input

Events

Eventdetail
magic-changeSingle: { value, date } — Range: { value: { start, end }, date: { start, end } }
changeSame as magic-change (bubbles)

Methods

MethodDescription
open()Open popover panel
applyNaturalLanguage(text, { confirm? })Parse NL; optionally confirm