For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/textarea.md.
v0.0.57
  • English
  • Textarea

    Data Entry@rockshin/tao-ui

    Multi-line text input with optional auto sizing.

    When to use

    Use Textarea for longer freeform content such as descriptions, notes, and comments.

    Recommended

    • Set rows or autoSize based on expected content length.
    • Use maxLength when limits are strict.

    Avoid

    • Do not use the component outside its intended interaction model.

    Examples

    Basic usage

    TSX

    Variants

    TSX

    Sizes and autosize

    TSX

    Controlled text and character count

    Native maxLength limits input; controlled state displays the character count.

    0 / 120
    TSX

    Bounded automatic height

    Enter multiple lines to grow between minRows and maxRows.

    TSX

    Read-only, disabled, and error

    Distinguish readable content, unavailable input, and an error requiring correction.

    TSX

    Submit and reset

    Read content by name and use reset to restore the default value.

    TSX

    Semantic styling

    Style the textarea semantic part while retaining component states and focus behavior.

    TSX

    Clear and count

    Textarea and Input.TextArea are the same component, supporting allowClear, onClear, showCount, count, onPressEnter, and variant="underlined". See the Input family examples and API.

    API

    Textarea

    PropertyDescriptionTypeDefault Value
    autoSizeAuto-grow height to fit content. true grows freely; pass min/max rows to clamp.boolean | AutoSizeOptions | undefined-