All Components

This website hosts Kendo UI wrappers of Kendo UI for jQuery widgets intended to be used in the React ecosystem.

Go to the native Kendo UI implementations for React

DateInputs Overview

The DateInputs enable the user to pick up dates and times for scheduling appointments.

Basic Usage

The following example demonstrates the Calendar, DateInput, DatePicker, DateTimePicker, and TimePicker components in action.

class LayoutsContainer extends React.Component {
     constructor(props) {
       super(props);
       this.date = props.date
     }

     render() {
       return (
           <div className={"row example-wrapper"}>
               <div className={"col-xs-12 col-md-6 example-col"}>
                   <p>DateInput</p>
                   <DateInput value = {this.date}/>
                   <p>(use <code>←</code> and <code>→</code> to navigate, <code>↑</code> and <code>↓</code> to update)</p>

                   <p>DatePicker</p>
                   <DatePicker value ={this.date}/>
                   <p>(use <code>Alt</code>+<code>↓</code> to open the Calendar)</p>

                   <p>DateTimePicker</p>
                   <DateTimePicker value ={this.date}/>
                   <p>(use <code>Alt</code>+<code>↓</code> to open the Calendar)</p>

                   <p>TimePicker</p>
                   <TimePicker value={this.date}/>
                   <p>(use Alt+↓ to open the time list, Tab to move to the next time section in the popup, ↑ to increment and ↓ to decrement the value)</p>
               </div>
               <div className={"col-xs-12 col-md-6 example-col"}>
                   <p>Calendar</p>
                   <Calendar value ={this.date}/>
               </div>
           </div>
       );
     }
   }

   ReactDOM.render(
     <LayoutsContainer date = {new Date()} />,
     document.querySelector('my-app')
   );

Installation

All components that you reference during the installation will be present in the final bundle of your application. To avoid ending up with components you do not actually need, import from the package only the desired component.

  1. Download and install the package.

    npm install --save @progress/kendo-dateinputs-react-wrapper
  2. Once installed, import the desired component from the package.

    import { DatePicker } from '@progress/kendo-dateinputs-react-wrapper';

    The package also exports the following individual components:

    • Calendar
    • DateInput
    • DatePicker
    • DateTimePicker
    • TimePicker
  3. You are required to install one of the Kendo UI themes to style your components.

Dependencies

The DateInputs package requires you to install the following peer dependencies in your application:

  • @progress/kendo-ui
In this article