Agentic Design System
v3.5.0

Components · Forms · Input

Back to Input types

Input Text Field

Owner: Design System Team · Version: v3.5.0

Use for collecting a single line of free-form text, like an email address, a name, or a search query.

Properties

Size, corner radius, label, placeholder, leading icon and trailing icon are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.

Size
Corner radius
Icon placement
Allow clear
Required
Supporting text

Live Preview

Exports include all 3 appearances, 8 states, 8 sizes and 6 corner radii, with editable text, visibility, icon swaps and a supporting-content slot. The selected configuration becomes the preview instance.

When to use

Any form field that collects a single line of text - names, emails, search terms, or other short free-form values.

Email Full name Search Phone number Company

Component Guide

Overview

Input (Text Field) is the base single-line text control for collecting free-form values - a label, a text box with a placeholder, and states for focus, filled, error and disabled - the foundation every more specialized text field (Password, Number, Search, and others) builds on.

When to Use

  • Any short, free-form line of text - email address, full name, company name.
  • A value with no fixed format the system can validate character-by-character - a search term typed into a form.
  • A phone number or similar short structured value with no dedicated component - when no more specific field type exists.

When Not to Use

  • A value from a fixed, known list - use Select so the user picks rather than types a value that must match exactly.
  • Multiple lines of text - use Text Area.
  • A secret value that should stay hidden while typing - use Password.
  • A value with a live suggestion list - use Autocomplete or Mention.

Best Practices

  • Always pair the field with a visible label, not placeholder-only text - placeholders disappear once typing starts and fail low-vision and memory-impaired users.
  • Show validation errors inline, next to the field, with a specific message rather than a generic "Invalid input."
  • Use placeholder text only for a format example (e.g. "name@company.com"), never as the only instruction for what to enter.

Do and Don't

Do

A visible label that stays put, with the placeholder showing the expected format rather than carrying the meaning.

Don't

A placeholder used as the label disappears the moment someone types, leaving the filled field unlabelled for anyone who looks away and back.

Accessibility

  • The label is programmatically associated with the input (via for/id or by wrapping it), not just visually adjacent.
  • The error state sets aria-invalid and links the error message with aria-describedby, so screen readers announce it.
  • Focus state shows a visible outline distinct from the field's default border.

Related Components

Password, Number, Search, Autocomplete, Mention, Text Area.