# Input

### Key Features

**Custom HTML Attributes**: Supports the addition of a variety of HTML attributes to the input element, allowing for extensive customization and accessibility enhancements. **Optional Child Elements**: Allows for the inclusion of additional rendered elements alongside the input field, providing flexibility for complex form designs. **Class Management**: Integrates options for removing default classes and adding custom utility classes for tailored styling.

### Customization Options

**Removing Default Classes**: The template includes an option (remove\_form\_control) to omit the default 'form-control' class, particularly useful for checkboxes and radio buttons. **Utility Classes**: Additional utility classes (input\_utility\_classes) can be applied for more specific styling needs, offering a high degree of customization.

### Usage

```twig
{% include 'radix:input' with {
  attributes: attributes.removeClass('button'),
  remove_form_control: false,
  input_utility_classes: ['the-class', 'the-other-class'],
} %}
```


---

# 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/input.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.
