# 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" %}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trydrupal.com/radix/components/form-element.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
