# Chat input

A native form composer with an auto-sized text area slot, helper copy, and submit action.

**Install:** `tokens.css`, `chat-input.css`, and `button.css` when using the canonical submit button.

**States:** idle, streaming (host swaps submit for an explicit **Stop**), disabled, and error. Do not auto-send without a visible, interruptible stop path owned by the host. **No-JS:** native form submission. **Accessibility:** label the textarea or provide an `aria-label`; preserve drafts on errors. **CSS variables:** none beyond child controls. **JavaScript:** Enter-to-submit is optional enhancement, not a requirement.

