All Components

You are on the site of the Kendo UI Wrappers for React suite which contains wrappers for the Kendo UI for jQuery widgets. To explore the brand-new set of Kendo UI for React components which are built from the ground up, go to the Kendo UI for React suite.

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