# Adornments

The MaskedTextBox component provides the option for adding custom items as prefix and suffix adornments.

## Suffix and Prefix Adornment

Render custom React Components like `Icon`, `Button`, or plain text as `prefix` and `suffix` to the MaskedTextBox and implement custom functionality on top of them. To specify the layout alignment of the prefix and suffix adornments, set the `orientation` property to `horizontal` or `vertical`.

> For correct styling, wrap custom adornments in [`InputPrefix`](https://www.telerik.com/kendo-react-ui/components/inputs/api/inputprefix) and [`InputSuffix`](https://www.telerik.com/kendo-react-ui/components/inputs/api/inputsuffix) containers.

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

## Separator

To visually separate the specified adornments, you can add a [`InputSeparator`](https://www.telerik.com/kendo-react-ui/components/inputs/api/inputseparator) component. To specify the layout alignment of the separator element, set the `orientation` property to `horizontal` or `vertical`.

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

## Suggested Links

* [API Reference of the MaskedTextBox](https://www.telerik.com/kendo-react-ui/components/inputs/api/maskedtextboxprops)
* [API Reference of the Button](https://www.telerik.com/kendo-react-ui/components/buttons/api/buttonprops)
* [API Reference of the Icon](https://www.telerik.com/kendo-react-ui/components/common/api/iconprops)
