Text Area
A multiline text input that allows users to enter longer form content.
'use client'; import { useState } from 'react';import { TextArea, Select, Divider, Button, HelpIcon } from 'sdaia-ui'; Installation
npx sdaia-ui@latest add textarea
Usage
import { TextArea } from "@/components/ui/textarea"<TextArea placeholder="Enter your message..." />Examples
Placeholder
Default empty state.
'use client'; import { useState } from 'react';import { TextArea } from 'sdaia-ui'; Filled
Contains entered text.
'use client'; import { TextArea } from 'sdaia-ui'; export default function TextAreaFilled() {Focused
Active/focused state.
'use client'; import { useState } from 'react';import { TextArea } from 'sdaia-ui'; Disabled
Non-interactive state.
'use client'; import { TextArea } from 'sdaia-ui'; export default function TextAreaDisabled() {API Reference
TextAreaProps
Props for the TextArea component.
Prop | Type | Default | Required |
|---|---|---|---|
label | ReactNode | - | optional |
helperText | string | - | optional |
error | string | - | optional |
destructive | boolean | false | optional |
showButton | boolean | false | optional |
buttonLabel | string | 'Button' | optional |
onButtonClick | () => void | - | optional |
fullWidth | boolean | false | optional |