diff --git a/content/docs/3.components/textarea.md b/content/docs/3.components/textarea.md deleted file mode 100644 index 82ee457..0000000 --- a/content/docs/3.components/textarea.md +++ /dev/null @@ -1,2863 +0,0 @@ ---- -title: Textarea -description: How to build a textarea that people can label, write in at length and fix, that grows or resizes without cutting anything off, and that agents can check. -navigation: - icon: i-lucide-text ---- - -Textareas are where people write more than a line, like a comment, a message, a description or a delivery note. They look like an input that's a few lines taller, which is why they're so often built as one and inherit all of its problems, along with a few of their own. Think of a box too small to see what you've written, a limit that silently cuts off the end of what you pasted, or an `Enter` key that sends a message you were still writing. - -This page walks you through building one the right way. We'll look at: -- **User Interface** (UI) - how a textarea looks -- **User Experience** (UX) - how it behaves for every person and every input -- **Developer Experience** (DX) - how developers work with it -- **Agentic Experience** (AX) - how agents can read and verify it - -Every example on this page runs on our [reference implementation](/docs/components/textarea#reference-implementation), which does its part of every rule in the [checklist](/docs/components/textarea#checklist), so feel free to write in them as you read. The code under each example comes in React, Vue, Svelte, Angular, Solid, Astro and Vanilla, written for a Textarea with the same API in each. Pick yours from the Framework select above the sidebar. Vanilla is plain HTML and JavaScript, so it writes out the markup from the [DOM contract](/docs/components/textarea#deterministic). - -The Textarea is the box you write in, like the [Input](/docs/components/input) is for a single line. Its label, hint and error message are elements of their own, which you link to it by ID, and a Field component, which is on our [Roadmap](/docs/getting-started/roadmap), will put them together for you. Until then, the examples do it with a plain `