Skip to content

DateTimeInput

Gen UI 2.0 standard

A date picker, a time picker with enableTime, or both. timeStep (minutes) offers fixed times, e.g. 30 for a booking. The value is ISO 8601. Give it a label.

One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use DateTimeInput. Standard catalog docs

Props

Read from standardUI.manifestComponents in the installed @copilotkit/react-core. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
labelstringNoThe visible label of the field. Always set it
valuestringNoISO 8601: "YYYY-MM-DD", "HH:MM" or "YYYY-MM-DDTHH:MM". Bind it with { "@path": "/x" }
checks{ condition?, message? }[]NoValidation rules. The control shows the first failed one
enableDatebooleanNoThe user picks a date. Default true unless only enableTime is set
enableTimebooleanNoThe user picks a time
timeStepintegerNoMinutes between the times the user can pick, e.g. 15 or 30. Shows the time as a list
minstringNoThe earliest value, ISO 8601
maxstringNoThe latest value, ISO 8601
placeholderstringNo-
disabledbooleanNo-
requiredbooleanNo-
clearablebooleanNo-
blockbooleanNoFull width
weightnumberNoflex-grow in a Row or Column