منطقة النص

حقل إدخال نص متعدد الأسطر يتيح للمستخدمين إدخال محتوى النماذج الطويلة.

Loading demo: textarea-real-world

التثبيت

npx sdaia-ui@latest add textarea

الاستخدام

import { TextArea } from "@/components/ui/textarea"
<TextArea placeholder="Enter your message..." />

الأمثلة

نص التلميح

الحالة الفارغة الافتراضية.

Loading demo: textarea-default

ممتلئ

تحتوي على نص أدخله المستخدم.

Loading demo: textarea-filled

مركَّز

الحالة النشطة / المركَّزة.

Loading demo: textarea-focused

معطَّل

الحالة غير التفاعلية.

Loading demo: textarea-disabled

مرجع الواجهة البرمجية

TextAreaProps

خصائص مكوّن TextArea.

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