> For the complete documentation index, see [llms.txt](https://docs.trydrupal.com/radix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trydrupal.com/radix/components/form-element.md).

# Form: Element

### Key Features

* **Versatile HTML Attributes**: Enables the inclusion of custom HTML attributes for the form element container.
* **Error Handling**: Displays any errors associated with the form element, enhancing user feedback and interaction.
* **Prefix and Suffix**: Supports optional prefix and suffix for the form element, allowing for additional contextual information or styling.
* **Label and Description Management**: Offers multiple display options for labels and descriptions, including visibility settings for screen readers.
* **Required Field Indicator**: Includes a marker for required fields, improving form usability and user guidance.
* **Disabled State Support**: Allows for the form element to be marked as disabled.
* **Customizable Classes**: Incorporates `form_element_utility_classes` for additional styling options.

### Customization

* **Label and Description Settings**: Customize the position and visibility of labels and descriptions to suit different form layouts and accessibility needs.
* **Prefix/Suffix Addition**: Add contextual prefixes or suffixes to the form element for enhanced user understanding.
* **Error Styling**: Style the error messages to align with your application's design language.

### Usage

```twig
{% include "radix:form-element" %}
```
