Component Catalog

DateTimeInput

Date, time, or datetime input with auto-detection.

A2UI → Nuxt UI Mapping

enableDateenableTimeHTML Input TypeResult
true (default)false (default)dateDate picker
falsetruetimeTime picker
truetruedatetime-localFull datetime picker

Uses UInput with the appropriate type attribute.

Example JSONL

{"version":"v0.10","createSurface":{"surfaceId":"dt_demo","catalogId":"standard"}}
{"version":"v0.10","updateComponents":{"surfaceId":"dt_demo","components":[
  {"id":"root","component":"Column","children":["date_only","time_only","both"]},
  {"id":"date_only","component":"DateTimeInput","label":"Date","value":"2026-02-14","enableDate":true},
  {"id":"time_only","component":"DateTimeInput","label":"Time","value":"14:30","enableTime":true,"enableDate":false},
  {"id":"both","component":"DateTimeInput","label":"Date & Time","value":"2026-02-14T14:30","enableDate":true,"enableTime":true}
]}}

Properties

PropertyTypeRequiredDefaultDescription
valuestring""Current value (ISO format)
enableDatebooleantrueShow date input
enableTimebooleanfalseShow time input
minstringMinimum allowed value
maxstringMaximum allowed value
labelstringLabel above the input

Try It

Copy the JSONL above and paste it in the Playground Paste tab.