DateInputProps<T>

Represents the props of the KendoReact DateInput component. The generic argument is passed to the onChange property and is used as a target in the DateInputChangeEvent interface.

className? string

Sets a class of the DateInput DOM element.

defaultValue? Date | null

Specifies the default value of the DateInput. If value is not set, this value will correspond to the initial value.

dir? string

Represents the dir HTML attribute.

disabled? boolean

Determines whether the DateInput is disabled (see example).

format? string

Specifies the date format which is used for formatting the value (see example. If not set, the default format will be used.

formatPlaceholder? DateInputFormatPlaceholder

Specifies the descriptions of the format sections in the input field (more information and example.

id? string

Sets the id of the input DOM element.

label? string

Renders a floating label for the DateInput.

max? Date

Specifies the greatest date that is valid (see example.

min? Date

Specifies the smallest date that is valid (see example.

name? string

Specifies the name property of the input DOM element.

For runnable examples on forms support, refer to the documentation of the respective form component:

onChange? (event: DateInputChangeEvent<T>) => void

Determines the event handler that will be fired when the user edits the value (see example.

required? boolean

Specifies if null is a valid value for the component.

For runnable examples on forms support, refer to the documentation of the respective form component:

spinners? boolean

Specifies whether the Up and Down spin buttons will be rendered (see example).

steps? DateInputIncrementalSteps

Specifies the incremental steps of the DateInput (see example.

The available options are:

  • year: Number—Controls the incremental step of the year value.
  • month: Number—Controls the incremental step of the month value.
  • day: Number—Controls the incremental step of the day value.
  • hour: Number—Controls the incremental step of the hour value.
  • minute: Number—Controls the incremental step of the minute value.
  • second: Number—Controls the incremental step of the second value.

tabIndex? number

Sets the tabIndex property of the DateInput.

title? string

Sets the title of the input element of the DateInput.

valid? boolean

Overrides the validity state of the component. If valid is set, the required property will be ignored.

For runnable examples on forms support, refer to the documentation of the respective form component:

validationMessage? string

Controls the form error message of the component. If set to an empty string, no error will be thrown.

For runnable examples on forms support, refer to the documentation of the respective form component:

validityStyles? boolean

If set to false, no visual representation of the invalid state of the component will be applied.

For runnable examples on forms support, refer to the documentation of the respective form component:

value? Date | null

Specifies the value of the DateInput.

width? number | string

Specifies the width of the DateInput.

 /