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.

Buttons Overview

Buttons provide a clickable UI functionality with arbitrary content.

Basic Usage

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

<style>
     .k-button + .k-button {
         margin-left: 5px
     }
   </style>
class App extends React.Component {
    render(){
        return(
            <div class="example-wrapper">
                <div class="example-col">
                  <p>Button</p>
                  <Button >Default</Button>
                  <Button primary={true}>Primary</Button>
                  <Button disabled={true}>Disabled</Button>
                </div>
                <div class="example-col">
                  <p>ButtonGroup</p>
                  <ButtonGroup>
                    <Button togglable={true}>
                      Option A
                    </Button>
                    <Button togglable={true}>
                      Option B
                    </Button>
                    <Button togglable={true}>
                      Option C
                    </Button>
                  </ButtonGroup>
                </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-buttons
  2. Once installed, import the package module.

    // ES2015 module syntax
    import { Button } from '@progress/kendo-react-buttons';
    // CommonJS format
    const { Button } = require('@progress/kendo-react-buttons');
  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 Buttons package requires you to install the following peer dependencies in your application:

  • react
  • react-dom
In this article