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

# Input

Input creates a single form field. Its Type selects the appropriate browser input, validation, keyboard, and autofill behaviour.

### How to Use Input

You’ll find Input under **Forms** in the Components list.

1. Place Input inside a [Form](/elements-docs/using-elements/components/form.md).
2. Choose the correct Type.
3. Enter a short, unique Name.
4. Add a [Label](/elements-docs/using-elements/components/form/label.md) whose For value exactly matches the Name.
5. Set Required and Placeholder as needed.
6. Style the text, border, background, and focus outline.

### Component Settings

#### Settings

**Type** is not responsive and defaults to Text:

* Text
* Textarea
* Email
* Number
* Password
* Search
* Telephone
* URL

Textarea reveals **Rows**, which defaults to 3.

**Name** is blank by default. If left blank, Elements generates a name. Use letters, numbers, hyphens, or underscores and do not reuse a Name within the Form.

**Required** is off by default.

**Placeholder** defaults to “Placeholder”.

Placeholder **Color** defaults to Text 400.

{% hint style="info" %}
Name an Email input exactly `email` when the submitted address should become the email’s Reply-To address.
{% endhint %}

#### Input

Input text **Color** defaults to Text 50.

**Font** defaults to Body and **Size** to Base.

#### Outline

**Type** defaults to None:

* **None** — Adds no outline.
* **Static** — Uses one outline style.
* **Focus** — Provides Unfocused and Focused states.

Outline defaults are Solid style, Surface 500 colour, 100% opacity, width 1, and offset 0.

Keep a visible Focus state for keyboard users.

#### Shared Input Defaults

Input uses 100% Width and Auto Height.

Spacing is enabled with zero Margin and Padding 2 vertically and 3.5 horizontally.

The Border is Static by default with Solid style, Surface 900 colour, 100% opacity, Theme Default width, and no radius.

### Accessibility

Use the most specific Type, add a visible Label, and do not use Placeholder as the only label. Explain required formats or password rules before the field.

### Related Components

* [Label](/elements-docs/using-elements/components/form/label.md) — Connects descriptive text to the Input.
* [Date Picker](/elements-docs/using-elements/components/form/date-picker.md) — Adds a calendar interface.
* [Select](/elements-docs/using-elements/components/form/select.md) — Presents a fixed list of choices.

| Common Control                                                                                                     | Description                                                             |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [Link](/elements-docs/using-elements/components/common-controls/link.md)                                           | Link to a page, resource, anchor, email address, or website.            |
| [Layout](/elements-docs/using-elements/components/common-controls/layout.md)                                       | Control positioning, stacking, visibility, overflow, and isolation.     |
| [Sizing](/elements-docs/using-elements/components/common-controls/sizing.md)                                       | Set width, height, and responsive size constraints.                     |
| [Spacing](/elements-docs/using-elements/components/common-controls/spacing.md)                                     | Add responsive margin and padding.                                      |
| [Typography & Text Styles](/elements-docs/using-elements/components/common-controls/typography-and-text-styles.md) | Control fonts, text spacing, decoration, colour, and semantic wrappers. |
| [Backgrounds](/elements-docs/using-elements/components/common-controls/backgrounds.md)                             | Apply colour, image, gradient, SVG, video, and hover backgrounds.       |
| [Transitions](/elements-docs/using-elements/components/common-controls/transitions.md)                             | Choose what animates and set its timing curve, duration, and delay.     |
| [Effects](/elements-docs/using-elements/components/common-controls/effects.md)                                     | Apply shadows, opacity, and hover effects.                              |
| [Filters](/elements-docs/using-elements/components/common-controls/filters.md)                                     | Apply blur, brightness, saturation, shadow, and backdrop effects.       |
| [Transforms](/elements-docs/using-elements/components/common-controls/transforms.md)                               | Scale, rotate, move, and skew components.                               |
| [Borders](/elements-docs/using-elements/components/common-controls/borders.md)                                     | Set border style, colour, opacity, width, radius, and hover states.     |
| [Advanced](/elements-docs/using-elements/components/common-controls/advanced.md)                                   | Add CSS classes and IDs, or change supported HTML tags.                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.realmacsoftware.com/elements-docs/using-elements/components/form/input.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
