import type { Meta, StoryObj } from 'storybook-solidjs-vite'; import type { JSX } from 'solid-js'; import { Textarea } from './textarea'; import { componentDescription } from '../stories/docs/element-controls'; const meta = { title: 'Solid (Advanced)/Primitives/Textarea', component: Textarea, tags: ['autodocs'], parameters: { layout: 'padded', docs: { description: componentDescription([ 'A single-line-by-default textarea that auto-grows with its content up to an optional `maxHeight`, after which it scrolls. It is **transparent and borderless by design** — it is meant to drop into a composed input frame that owns the visual boundary and focus ring (the demos below wrap it exactly the way `PromptInput` / `` does, with `focus-within` on the frame). This is the editable surface behind `PromptInput`.', '**When to use:** free-text entry that may span multiple lines — a chat composer, a comment box, an editable note.', '**How to use:** drop it inside a framed container and use it like a native `