HextaUI

Textarea: Right to left

Text, placeholder and caret follow the reading direction.

import { Textarea } from "@/components/ui/textarea"

export function TextareaRtl() {
  return (
    <div dir="rtl" className="w-full max-w-sm">
      <Textarea aria-label="رسالتك" placeholder="اكتب رسالتك هنا…" />
    </div>
  )
}

This adds the example as components/examples/textarea/rtl.tsx, together with the Textarea component and the HextaUI theme tokens it needs.

pnpm dlx shadcn@latest add https://hextaui.com/r/textarea-rtl.json

To add only the component, follow the Textarea installation.

See them all, with keyboard support and accessibility notes, on the Textarea page.