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

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