TidalUI

Textarea preview

Multiline input with auto sizing and a character count.

free · Forms · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add https://tidalui.com/r/textarea.json

Import components/ui/tidal.css, components/ui/textarea.css. Wrap installed components in tidal-scope.

Preview

Textarea component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/textarea.css";
import{TidalTextarea}from"./components/ui/textarea";
export default()=><div className="tidal-scope"><TidalTextarea label={"Demo"}/></div>;

API and props

TidalTextarea.label (required)
string

Required label value accepted by this exported component.

TidalTextarea.autoGrow
boolean | undefined

Native rows and vertical resizing remain available when false.

TidalTextarea.description
string | undefined

Optional description value accepted by this exported component.

TidalTextarea.error
string | undefined

Optional error value accepted by this exported component.

TidalTextarea.formatCount
((count: number, limit: number | undefined) => string) | undefined

Optional format count value accepted by this exported component.

TidalTextarea.maxRows
number | undefined

Optional max rows value accepted by this exported component.

TidalTextarea.minRows
number | undefined

Optional min rows value accepted by this exported component.

TidalTextarea.rootClassName
string | undefined

Optional root class name value accepted by this exported component.

TidalTextarea.showCount
boolean | undefined

Defaults to true when maxLength is present. Counts native UTF-16 units.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas