implementation
Implement in your agent
# Implement Textarea in your agent ## Objective Implement Textarea for this verified behavior: A labeled control for entering or editing free-form text across multiple lines. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Textarea matches the need before writing code. ## Required behavior - Enter inserts a new line, and the control can grow or scroll without hiding its label. - A specific inline message identifies the invalid field and explains how to correct it. ## States to cover - Draft within limit — Draft within limit - Draft over limit — Draft over limit ## Accessibility - The primary control or named region for Textarea has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - Visible focus surrounds the control and remains visible while the user scrolls within long text. - Not applicable: the draft remains until reset, submitted, or deliberately cleared. - Tab focuses the textarea - Enter inserts a new line - Native editing and scrolling shortcuts remain available ## Non-goals - The value should remain one short line - Users need rich-text formatting rather than plain text ## Acceptance criteria - Enter creates a line break - The visible label and guidance remain associated - Resize or auto-grow never hides content or actions - Length errors preserve the draft and explain recovery
sha256:ab2c52a9d30b340292c3bd0e1362a3330fbc49d1e43be82f2ffbfb6c01fc9e14