Lucent UI
InputTextareaSearchInput
✦ LLM-ready

Textarea

atom

Multi-line text field with optional auto-resize, character count, and three sizes. Ideal for bios, notes, and any open-ended text input.

"Add a Textarea from lucent-ui with label, autoResize, and a 280-character limit with a character counter."

Usage

React / JSX
import { Textarea } from 'lucent-ui'

<Textarea label="Textarea" placeholder="Textarea" size="md" />

Installation

pnpm add lucent-ui

API Reference

Textarea props — * required

PropTypeDefaultDescription
labelstringLabel displayed above the textarea.
placeholderstringHint text when the field is empty.
valuestringControlled value.
size"sm" | "md" | "lg""md"Height, font size, and padding scale.
autoResizebooleanfalseGrows the textarea height as content is added.
maxLengthnumberCharacter limit. Used with showCount to display a counter.
showCountbooleanfalseDisplays remaining character count when maxLength is set.
helperTextstringHint or description below the textarea.
errorTextstringError message; triggers the error visual state.
disabledbooleanfalsePrevents interaction.
onChange(e: React.ChangeEvent<HTMLTextAreaElement>) => voidChange event handler.