---
url: /docs/components/text-field/overview.md
---
# Text field - Overview

A text field is a single-line input component used for entering and editing textual data.

## General

It supports a wide range of behaviours, labels, icons, prefixes/suffixes, tooltips, and error handling to support various use cases and accessibility needs. Text fields are a fundamental element of forms and search experiences across the product ecosystem.

Related components: [Text area](../text-area/overview.md), [Select](../select/overview.md).

## Examples

## Variants

### Default

### Label only

### Text field only

### Optional

### Info tooltip

### Suffix and prefix

### Icon left and right

## Anatomy

:::image-block
![Anatomy illustration, 1-7](/components/textfield/overview-anatomy-1.svg)&#xA;
![Anatomy illustration, 8-10](/components/textfield/overview-anatomy-2.svg)
:::

1. Input label (optional)
2. Input field
3. Optional indicator (optional)
4. Info tooltip (optional)
5. Placeholder
6. Left icon (optional)
7. Right icon (optional)
8. Suffix (optional)
9. Prefix (optional)
10. Help text (optional)
