All Components

This website hosts native Kendo UI components, built from the ground up with the ultimate performance in mind, intended to be used in the React ecosystem.

Layout Overview

The Layout components create a perceptive and intuitive layout of web projects to provide for an easier navigation.

Basic Usage

The following example demonstrates the PanelBar and TabStrip components in action.

class App extends React.Component {
       constructor(props){
         super(props);

         this.state = {
           tabSelected: 0
         };
       }
       handleTabSelect = (e) => {
         this.setState({tabSelected: e.selected});
       }
       render(){
           return(
               <div class="example-wrapper container-fluid">
                 <div class="row">
                   <div class="col-xs-12 col-sm-6 example-col">
                     <p>PanelBar</p>
                     <PanelBar>
                       <PanelBarItem title="Invasion Games">
                         <PanelBarItem title="Hockey"></PanelBarItem>
                         <PanelBarItem title="Soccer"></PanelBarItem>
                         <PanelBarItem title="Rugby"></PanelBarItem>
                       </PanelBarItem>
                       <PanelBarItem title={"Net & Court Games"} expanded="true">
                         <PanelBarItem title="Badminton"></PanelBarItem>
                         <PanelBarItem title="Squash"></PanelBarItem>
                         <PanelBarItem title="Tennis" selected={true}></PanelBarItem>
                         <PanelBarItem title="Table Tennis"></PanelBarItem>
                         <PanelBarItem title="Volleyball"></PanelBarItem>
                       </PanelBarItem>
                       <PanelBarItem title="Target Games">
                         <PanelBarItem title="Golf"></PanelBarItem>
                         <PanelBarItem title="Lawn bowls"></PanelBarItem>
                         <PanelBarItem title="Tenpin bowling"></PanelBarItem>
                       </PanelBarItem>
                     </PanelBar>
                   </div>
                   <div class="col-xs-12 col-sm-6 example-col">
                     <p>TabStrip</p>
                     <TabStrip selected={this.state.tabSelected} onSelect={this.handleTabSelect}>
                         <TabStripTab title="Baseball" >
                             <p>
                               Baseball is a bat-and-ball game played between two teams of nine players each, who take turns batting and fielding.
                             </p>
                             <p>
                               The batting team attempts to score runs by hitting a ball that is thrown by the pitcher with a bat swung by the batter, then running counter-clockwise around a series of four bases: first, second, third, and home plate. A run is scored when a player advances around the bases and returns to home plate.
                             </p>
                         </TabStripTab>
                         <TabStripTab title="Basketball">
                             <p>
                               Basketball is a sport that is played by two teams of five players on a rectangular court. The objective is to shoot a ball through a hoop 18 inches (46 cm) in diameter and mounted at a height of 10 feet (3.048 m) to backboards at each end of the court. The game was invented in 1891 by Dr. James Naismith, who would be the first basketball coach of the Kansas Jayhawks, one of the most successful programs in the game's history.
                             </p>
                         </TabStripTab>
                         <TabStripTab title="Football">
                             <p>
                               Football is a family of team sports that involve, to varying degrees, kicking a ball with the foot to score a goal. Unqualified, the word football is understood to refer to whichever form of football is the most popular in the regional context in which the word appears.
                             </p>
                         </TabStripTab>
                     </TabStrip>
                   </div>
                 </div>
               </div>
           )
       }
   }

ReactDOM.render(
   <App />,
   document.querySelector('my-app')
);

Installation

  1. Download and install the package. Use Node.js v5.0.0 or later.

    npm install --save @progress/kendo-react-layout
  2. Once installed, import the package module.

    // ES2015 module syntax
    import { PanelBar, TabStrip } from '@progress/kendo-react-layout';
    // CommonJS format
    const { PanelBar, TabStrip } = require('@progress/kendo-react-layout');
  3. You are required to install one of the Kendo UI themes for React to style your components. For more information on how to add the styles, refer to the article on getting started.

Dependencies

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

  • react
  • react-dom
In this article