implementation
Implement in your agent
# Implement Text field in your agent ## Objective Implement Text field for this verified behavior: A labeled single-line control for entering or editing one textual value. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Text field matches the need before writing code. ## Required behavior - Typing edits a single value while selection, clipboard, and undo behaviors remain native. - A specific inline message identifies the invalid field and explains how to correct it. ## States to cover - Display name valid — Display name valid - Display name invalid — Display name invalid ## Accessibility - The primary control or named region for Text field has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - A visible focus indicator surrounds the field without hiding its value, label, or error. - Not applicable: the entered value remains until edited, reset, or intentionally submitted. - Tab focuses the field - Standard editing, selection, undo, and clipboard shortcuts remain native - Enter follows the surrounding form contract ## Non-goals - The response needs line breaks - The primary intent is to submit a search query ## Acceptance criteria - A visible label remains outside the placeholder - Input purpose and autocomplete are correct - Help and error text are programmatically associated - Invalid submission preserves the user's value
sha256:4ee24b56a43429835278dd7ae500e694a60a6e319a09844ab55e3c8e3e81a2b4