# Separator

The Kendo UI for Angular OTP Input component enables you to group the input fields and visually separate them by rendering a desired symbol or icon between the groups.

## Configuration

To render a separator between groups of input fields in the OTP Input component:

1. Define the desired input groups by setting the [`groupLength`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#groupLength) property to a single number value or an array of numbers. If you set the `groupLength` to an array of numbers, you can specify a different length for each group.
2. Set the [`separator`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#separator) property of the component to one of the following options:
   * a `string` value—Allows you to render text characters or specific symbols as separators.
   * [`OTPSeparatorIcon`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpseparatoricon)—Allows you to render icon separators. See the [Icon Separator](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/otpinput/separator#icon-separator) section for more details.

The following example demonstrates how to define a `string` separator for the input groups of the Kendo UI for Angular OTP Input.

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

## Icon Separator

To define an icon separator between the input fields of the OTP Input, set the [`separator`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent#separator) property to an object of type [`OTPSeparatorIcon`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpseparatoricon). The `OTPSeparatorIcon` object consist of the following fields:

* `type`—Used to specify the type of icon to be rendered. This field allows setting an icon of type:
  * `svgIcon`—Sets an SVG icon. For the full list of available icons, visit the [list of SVG icons supported by Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui-develop/components/icons/svgicon/svgicon-list).
  * `fontIcon`—Sets a font icon. For the full list of available icons, visit the [list of font icons supported by Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui-develop/components/icons/icon/icon-list).
  * `iconClass`—Displays an icon from a CSS class. Using the `iconClass` is suitable for rendering [FontAwesome](https://fontawesome.com/) or other third-party font icons.
* `value`—Used to set the desired icon to be displayed depending on the specified `type`. This field accepts values of type [`SVGIcon`](https://www.telerik.com/kendo-angular-ui-develop/components/icons/api/svgicon) or `string`.

```ts Kendo UI SVG Icon
public chevronDoubleRightIcon: SVGIcon = chevronDoubleRightIcon;

public svgIconSeparator: OTPSeparatorIcon = {
    type: "svgIcon",
    value: chevronDoubleRightIcon,
};
```

```ts Kendo UI Font Icon
public fontIconSeparator: OTPSeparatorIcon = {
    type: "fontIcon",
    value: "star",
};
```

```ts FontAwesome icon
public fontAwesomeSeparator: OTPSeparatorIcon = {
    type: "iconClass",
    value: "fa fa-arrow-right",
};
```

The following example demonstrates how to define an icon separator for the input groups of the Kendo UI for Angular OTP Input.

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

## Suggested Links

* [API Reference of the OTP Input Component](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/otpinputcomponent)
