KendoReact Date Inputs Overview
The KendoReact Date Inputs enable the user to pick up dates for scheduling appointments.
The Date Inputs components are part of the KendoReact library which provides native KendoReact components for the React ecosystem and are available under the kendo-react-dateinputs NPM package.
Basic Usage
The following example demonstrates the Calendar, DateInput, DatePicker, and TimePicker components in action.
Installation
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-react-dateinputs @progress/kendo-react-intl @progress/kendo-licensing
Once installed, import the package module.
// ES2015 module syntax import { DateInput, Calendar, DatePicker, TimePicker, MultiViewCalendar, DateRangePicker } from '@progress/kendo-react-dateinputs';
// CommonJS format const { DateInput, Calendar, DatePicker, TimePicker, MultiViewCalendar, DateRangePicker } = require('@progress/kendo-react-dateinputs');
You are required to install one of the KendoReact themes to style your components. For more information on how to add the styles, refer to the article on getting started.
Follow the instructions on the KendoReact My License page to activate your license. You can skip this step if your application already contains a KendoReact license file.
Dependencies
The Date Inputs package requires you to install the following peer dependencies in your application:
- react 16.8.2*
- react-dom
- @progress/kendo-licensing