# Controlled Mode

By default, the KendoReact OTPInput operates in uncontrolled mode and manages its own internal value state.

## Controlling the Value

To place the OTPInput in controlled mode:

1. Set its [`value`](https://www.telerik.com/kendo-react-ui/components/inputs/api/otpinputprops#value) property.
2. Handle the [`onChange`](https://www.telerik.com/kendo-react-ui/components/inputs/api/otpinputprops#onchange) event and update the value in your component state.

The following example demonstrates controlled mode, including programmatic value setting and clearing via buttons.

[Demo Source](https://demos.telerik.com/kendo-react-ui/inputs/otpinput/controlled/func/source.txt)

## Suggested Links

* [API Reference of the OTPInput Props](https://www.telerik.com/kendo-react-ui/components/inputs/api/otpinputprops)
