Textarea

Área de texto multilínea. Comparte variantes (outline, filled, flushed) y tamaños con Input. Ofrece contador de caracteres opcional (showCount + maxLength), control de redimensionado (resize) y número de filas (rows).

Instalación#

bash
pnpm add @tsukira/ui

Uso#

tsx
import { Textarea } from "@tsukira/ui"; <Textarea label="Descripción" rows={4} placeholder="Escribe aquí…" /><Textarea  label="Bio"  maxLength={160}  showCount  helperText="Máximo 160 caracteres."/>

Ejemplos#

Playground

cambia las props y el código se regenera

label

helperText

errorText

size

variant

isInvalid

Inactivo

fullWidth

Inactivo

resize

rows

showCount

Activo

Variantes

outline · filled · flushed

Contador de caracteres

showCount + maxLength

Estados

helperText · isInvalid + errorText · disabled

Fusión: formulario de feedback

FormField + Textarea + Button
Tu opinión es anónima y nos ayuda a priorizar.

Fusión: caja de comentario con avatar

Avatar + Textarea + Button
LG

API#

TextareaPropsextends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>
PropTipoDefaultDescripción
labelstring
helperTextstring
errorTextstring
size'sm' | 'md' | 'lg'
variant'outline' | 'filled' | 'flushed'
isInvalidboolean
fullWidthboolean
resize'none' | 'vertical' | 'horizontal' | 'both'Resize: 'none' | 'vertical' (default) | 'horizontal' | 'both'.
rowsnumber4Filas (atributo nativo rows). Default 4.
showCountbooleanMostrar contador de caracteres (requiere maxLength).