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

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