build69
build69  /  Components  /  Text Inputs  /  Textarea

Textarea

v1.0.8Updated 27 Aug 2026

Multi-line text input. Resizable by default; pairs with FormField for long-form input. Adds autosize, character counter, markdown preview (DOMPurify-sanitised), mentions autocomplete, a floating formatting toolbar, and s

Preview

Live · 15 stories
DefaultOpen ↗
Why this is recommendedformtextareamultilinetext+4

The default, out-of-the-box Textarea.

Recommended for+14
  • Notes / comments fields
  • Description editors
  • Free-form input
  • Comment composers
  • Markdown-aware fields
  • Chat composers
Tags+6
formtextareamultilinetextmarkdownmentionsautosizedefault
Features+4
  • Auto sizing via className
  • Disabled / read-only
  • Native attributes pass-through
  • Autosize to content
  • Character counter
  • Markdown preview (rendered via the Markdown composite, sanitised by DOMPurify)
  • Mentions autocomplete (@user)
  • Floating formatting toolbar (bold / italic / code / link)
  • Submit-on-enter (with shift+enter for newline)
  • i18n: labels prop overrides mode tabs, floating-toolbar and mention-listbox strings
Not recommended for−2
  • Short single-line input (use Input)
  • Long-form WYSIWYG (use a dedicated editor)

Install

Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.

get_registry_item({ name: "Textarea" })

Usage

import { Textarea } from '@/components/inputs/textarea';

<Textarea autosize markdownPreview showCount maxLength={500} placeholder="Write a comment…" />

Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.

Props

PropTypeRequired
autosize

Auto-grow with content

boolean
showCount

Show character counter

boolean
markdownPreview

Render a sanitised preview tab

boolean
mentions

Mention autocomplete list

MentionItem[]
submitOnEnter

Submit on Enter (Shift+Enter for newline)

boolean
toolbar

Show floating toolbar

boolean
labels

Override built-in UI strings (i18n)

Partial<TextareaLabels>

Related