# Custom Attributes

The following code demonstrates how to add another [attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes) to any of the input components. The first step is to implement the ref of the component. Having the ref, use the `setAttribute` functionality on it and add the desired attribute and value.

The example includes adding `form` attribute in the Input, Rating and RangeSlider components.

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

## Suggested Links

* [API Reference of the Input Component](https://www.telerik.com/kendo-react-ui/components/inputs/api/inputprops)
* [Get Started with the Rating](https://www.telerik.com/kendo-react-ui/components/inputs/rating)
* [Get Started with the RangeSlider](https://www.telerik.com/kendo-react-ui/components/inputs/rangeslider)
