# Text Input

> Token-driven text inputs with a borderless bottom-line style, animated focus underlines, leading icons, password visibility toggles, live per-field validation, dark mode, and a responsive two-column layout.

- Category: Input
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Odyssey
- Dark mode: yes
- Access: free (sign in to copy the code)
- Tags: password, validation
- Page: https://builder.atheros.ai/components/text-input
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_text_input/preview-91049ca99598.webp

## Features

- Borderless inputs with a single bottom border and an animated primary underline on focus (`scaleX(0) → 1`)
- Leading-icon and trailing-action input variants (search icon, password toggle)
- Password visibility toggle that swaps eye-open and eye-closed icons via a class
- Live validation for name, email, URL, phone, number, password, confirm, and username fields
- Success and error states recolor the underline, label, and hint text
- Disabled state dims and blocks interaction
- Reveal driven by `opacity` and `transform` only — never layout properties
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Labels** — Every input has an associated `<label for>`
- **Password toggle** — Real `<button>` with `aria-label="Toggle visibility"`
- **Focus indicators** — `:focus-visible` with `--ring` outline on interactive elements
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Tab` — Move focus between fields and actions

## Common questions

**Which frameworks is Text Input available in?**

Text Input ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Text Input free?**

Yes. Text Input is a free component: preview it without an account, and sign in with a free Atheros account to copy or download the full source and customise it with AI.

**Does Text Input support dark mode?**

Yes. Text Input ships light and dark themes, both drawn from the Odyssey design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Text Input live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/text-input

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
