Text Area
A multiline text input component for longer form content with support for labels, helper text, and AI generation.
Installation
npx chilli@latest add textareaDefault
Helper text
States
Helper text
Helper text
Helper text
API Reference
TextArea
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | The label text displayed above the textarea. |
helperText | string | — | Helper text displayed below the textarea. |
error | string | — | Error message. Replaces helper text and applies error styling. |
showAiButton | boolean | false | Whether to show the 'generate with AI' button. |
onAiGenerate | () => void | — | Callback when the AI generate button is clicked. |
disabled | boolean | false | Whether the textarea is disabled. |
placeholder | string | — | Placeholder text. |