Skip to content

Date Input

The DateInput component provides a form input for selecting or entering dates.
It can be used for booking forms, scheduling, reporting, or any feature requiring date selection.

  • Flexible input types: Supports date, month, and custom formats.
  • Interactive calendar: Users can pick dates using a calendar interface.
  • Manual entry: Users can type a date directly if preferred.
  • Accessible: Keyboard and screen reader friendly.


PropTypeDefaultDescription
type"date" | "month""date"Determines the type of date input.
valuestring""Current value of the input in ISO format (YYYY-MM-DD).
placeholderstring""Placeholder text for the input field.
disabledbooleanfalseDisables the input, preventing user interaction.
minstringOptionalMinimum selectable date.
maxstringOptionalMaximum selectable date.
  • Use clear placeholder text to indicate expected format.
  • Apply min and max to prevent invalid date selections.
  • Ensure labels are present for accessibility.
  • Combine with form validation to handle required or optional dates.
  • Choose the appropriate type for the use case (date vs month).