MaskedTextBox Overview

The MaskedTextBox uses a mask to control the input of the user.

Basic Usage

The following example demonstrates the MaskedTextBox in action.

class App extends React.Component {
    render() {
        return (
            <div>
                <p>Enter phone number</p>
                <MaskedTextBox mask="(999) 000-00-00-00" defaultValue="(359) 884-12-33-21" />
            </div>
        )
    }
}

ReactDOM.render(
    <App />,
    document.querySelector('my-app')
);

Functionality and Features

In this article