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

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 Menu, PanelBar, and TabStrip components in action.

class LayoutsContainer extends React.Component {
      constructor(props) {
        super(props);
        this.dataSource = new kendo.data.HierarchicalDataSource({
          data: props.data
        });
      }

      render() {
        return (
            <div className="example-wrapper">
            <p> PanelBar </p>
                 <PanelBar
                   dataTextField= {['CategoryName', 'ProductName']}
                   dataSource={this.dataSource}
                 />
            <p> Menu </p>
            <Menu scrollable={true}>
                <MenuItem>Item 1</MenuItem>
                <MenuItem>Item 2</MenuItem>
                <MenuItem>
                    Item 4
                    <SubMenu>
                        <MenuItem>Item 4 1</MenuItem>
                        <MenuItem>
                            Item 4 2
                            <SubMenu>
                                <MenuItem>Item 4 2 1</MenuItem>
                                <MenuItem>Item 4 2 2</MenuItem>
                            </SubMenu>
                        </MenuItem>
                    </SubMenu>
                </MenuItem>
            </Menu>
            <p> TabStrip </p>
            <TabStrip value="Paris">
               <Tabs>
                   <Tab>Paris</Tab>
                   <Tab>New York</Tab>
                   <Tab>London</Tab>
               </Tabs>
               <Content>
                   <h6>17<span>&ordm;C</span> and rainy.</h6>
               </Content>
               <Content>
                   <h6>29<span>&ordm;C</span> and sunny.</h6>
               </Content>
               <Content>
                   <h6>21<span>&ordm;C</span> and cloudy.</h6>
               </Content>
            </TabStrip>
          </div>
        );
      }
    }

    ReactDOM.render(
      <LayoutsContainer data={
          [{
            CategoryName: 'Tea',
            items: [{ ProductName: 'Green Tea' },{ ProductName: 'Black Tea' }]
          },{
            CategoryName: 'Coffee',
            items: [{ ProductName: 'Espresso' },{ ProductName: 'Latte' },{ ProductName: 'Cappuccino' }]
          }]
        } />,
      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 only the used component from the package.

  1. Download and install the package.

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

    import { Menu } from '@progress/kendo-layout-react-wrapper';

    The package also exports the following individual components:

    • Menu
    • PanelBar
    • TabStrip
  3. You are required to install one of the Kendo UI themes to style your components.

Dependencies

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

  • @progress/kendo-ui
In this article