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.

Buttons Overview

The Buttons provide a clickable UI functionality with arbitrary content.

Basic Usage

The following example demonstrates the Button, ButtonGroup, and ToolBar components in action.

class ButtonsContainer extends React.Component {
    constructor(props) {
        super(props);
        this.toolbarItems = [
            { type: 'button', text: 'Button', id: 0 },
            {
                type: 'splitButton',
                text: 'Insert',
                id: 1,
                menuButtons: [
                    { text: 'Insert above', icon: 'insert-up', id: 2 },
                    { text: 'Insert between', icon: 'insert-middle', id: 3 },
                    { text: 'Insert below', icon: 'insert-down', id: 4 }
                ]
            }
        ]
    }

    render() {
        return (
            <div className="row">
                <div className="col-xs-12 col-sm-6 example-col">
                    <Button>Button</Button>
                </div>
                <div className="col-xs-12 col-sm-6 example-col">
                    <ButtonGroup>
                        <li>Option A</li>
                        <li>Option B</li>
                        <li>Option C</li>
                    </ButtonGroup>
                </div>
                <div className="col-xs-12 col-sm-12 example-col">
                    <ToolBar items={this.toolbarItems}/>
                </div>
            </div>
        );
    }
}
ReactDOM.render(
    <ButtonsContainer />,
    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-buttons-react-wrapper
  2. Once installed, import the desired component from the package.

    import { Button } from '@progress/kendo-buttons-react-wrapper';

    The package also exports the following individual components:

    • Button
    • ButtonGroup
    • ToolBar
  3. You are required to install one of the Kendo UI themes to style your components.

Dependencies

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

  • @progress/kendo-ui
In this article