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.

Validator Overview

The Validator supports the validation of values and other types of user input.

The Validator wrapper for React is a client-side wrapper for the Kendo UI Validator widget.

Basic Usage

The following example demonstrates the Validator in action.

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

    render() {
        return (
            <div className="example-wrapper">
                <Validator>
                    <form>
                        <input className="k-textbox"
                               type="text"
                               id="fullname"
                               name="fullname"
                               placeholder="Full name"
                               required={true}
                        />
                        <br /><br />
                        <button className="k-button k-primary" type="submit">Submit</button>
                    </form>
                </Validator>                  
            </div>
        );
    }
}
ReactDOM.render(
    <ValidatorContainer/>,
    document.querySelector('my-app')
);

Installation

  1. Download and install the package.

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

    import { Validator } from '@progress/kendo-validator-react-wrapper';
  3. You are required to install one of the Kendo UI themes to style your components.

Dependencies

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

  • @progress/kendo-ui
In this article