# OTP Input Appearance

The Kendo UI for Angular OTP Input provides predefined appearance options such as different sizes, border radiuses, and fill modes. The component also offers options for modifying its length and defining a spacing between the input fields.

> Since [version 22.1.0](https://www.telerik.com/kendo-angular-ui/components/changelogs/kendo-angular-ui#v22.1.0), default values of the appearance properties are no longer hardcoded in the component. The default values are inherited from the Kendo theme.
>
> For more information, refer to the [Design System documentation](https://www.telerik.com/design-system).

The following example demonstrates all available appearance options of the OTP Input in action.

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

## Length

By default, the OTP Input component displays four input fields. You have the ability to adjust the length of the OTP Input and define the total number of input fields in the component.

To customize the number of input fields in the OTP Input, use the [`length`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#length) property that the component provides.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/otpinput/appearance/length/source.txt)

## Spacing

By default, the input fields in the OTP Input component are rendered separate from each other. The OTP Input provides a [`spacing`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#spacing) property that enables you to customize this behavior and display the input fields adjacent to each other.

To remove the default spacing between the input fields in the OTP Input, set the `spacing` property to `false`.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/otpinput/appearance/spacing/source.txt)

## Size

The OTP Input allows you to set different padding on the input fields. To achieve this, utilize the [`size`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#size) property. It accepts values of type [`InputSize`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/inputsize).

The [`size`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#size) option supports the following values:

* `small`
* `medium`
* `large`

The following example demonstrates how to define the size of the OTP Input.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/otpinput/appearance/size/source.txt)

## Roundness

The OTP Input enables you to apply different border radius to the component through the [`rounded`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#rounded) property. It accepts values of type [`InputRounded`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/inputrounded).

The [`rounded`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#rounded) option supports the following values:

* `small`
* `medium`
* `large`
* `full`
* `none`

> When the [`spacing`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#spacing) of the OTP Input is disabled, the `rounded` option affects the border radius only of the outer input fields.

The following example demonstrates how to define the border radius of the OTP Input.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/otpinput/appearance/rounded/source.txt)

## Fill Mode

The OTP Input allows you to set different fill modes by using the [`fillMode`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#fillMode) property. It accepts values of type [`InputFillMode`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/inputfillmode).

The [`fillMode`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#fillMode) option supports the following values:

* `flat`
* `solid`
* `outline`

The following example demonstrates how to define the fill mode of the OTP Input.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/otpinput/appearance/fill-mode/source.txt)

## Suggested Links

* [API Reference of the OTP Input component](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent)
* [Creating Custom Styles with ThemeBuilder](https://www.telerik.com/kendo-angular-ui-develop/components/styling/theme-builder)
