Date Input

A segmented date input component with keyboard navigation in DD/MM/YYYY format. Each date part (day, month, year) is individually editable with arrow key support.

Import

Usage

Default

//

Empty

//

Required

//

With Description

//

Enter your date of birth in DD/MM/YYYY format.

Validation

//

Disable Errors

//

Custom Error

//

Please enter a valid date.

DateInput Props

AttributeTypeDefaultDescription
labelReactNode-Label text for the input.
valueDate | null-The current date value (controlled).
onChange(date: Date | null) => void-Callback fired when the date changes.
classNamestring-Additional CSS classes for the component.
isRequiredbooleanfalseShows an asterisk (*) next to the label.
descriptionReactNode-Helper text displayed below the input.
isInvalidbooleanfalseSets the input to error state with red border.
errorMessageReactNode-Error message displayed when isInvalid is true.
disableErrorsbooleanfalseDisables automatic validation error messages.