# OTPInput Custom Attributes

The [`inputAttributes`](https://www.telerik.com/kendo-react-ui/components/inputs/api/otpinputprops#inputattributes) prop accepts a plain object whose key-value pairs are applied as HTML attributes to every individual input cell rendered by the OTPInput.

A common use case is setting `autocomplete="one-time-code"` to enable browser autofill for OTP codes delivered via SMS.

```tsx
<OTPInput inputAttributes={{ autoComplete: 'one-time-code' }} />
```

The following example demonstrates custom attributes in action. Inspect the rendered `<input>` elements in your browser's DevTools to verify the attribute is applied.

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

## Suggested Links

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