textarea-rtl.tsx — ui Source File
Architecture documentation for textarea-rtl.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 21df82c8_2272_9c59_f3a1_668522aa25ab["textarea-rtl.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 21df82c8_2272_9c59_f3a1_668522aa25ab --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 7e9c1e20_5a8a_4152_90a3_40c280dc340e["field"] 21df82c8_2272_9c59_f3a1_668522aa25ab --> 7e9c1e20_5a8a_4152_90a3_40c280dc340e 0eff32f6_d3b5_8091_7623_497e677665f0["textarea"] 21df82c8_2272_9c59_f3a1_668522aa25ab --> 0eff32f6_d3b5_8091_7623_497e677665f0 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] 21df82c8_2272_9c59_f3a1_668522aa25ab --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c style 21df82c8_2272_9c59_f3a1_668522aa25ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Field,
FieldDescription,
FieldLabel,
} from "@/examples/base/ui-rtl/field"
import { Textarea } from "@/examples/base/ui-rtl/textarea"
import {
useTranslation,
type Translations,
} from "@/components/language-selector"
const translations: Translations = {
en: {
dir: "ltr",
values: {
label: "Feedback",
placeholder: "Your feedback helps us improve...",
description: "Share your thoughts about our service.",
},
},
ar: {
dir: "rtl",
values: {
label: "التعليقات",
placeholder: "تعليقاتك تساعدنا على التحسين...",
description: "شاركنا أفكارك حول خدمتنا.",
},
},
he: {
dir: "rtl",
values: {
label: "משוב",
placeholder: "המשוב שלך עוזר לנו להשתפר...",
description: "שתף את מחשבותיך על השירות שלנו.",
},
},
}
export default function TextareaRtl() {
const { dir, t } = useTranslation(translations, "ar")
return (
<Field className="w-full max-w-xs" dir={dir}>
<FieldLabel htmlFor="feedback" dir={dir}>
{t.label}
</FieldLabel>
<Textarea id="feedback" placeholder={t.placeholder} dir={dir} rows={4} />
<FieldDescription dir={dir}>{t.description}</FieldDescription>
</Field>
)
}
Domain
Subdomains
Functions
Dependencies
- field
- language-selector
- react
- textarea
Source
Frequently Asked Questions
What does textarea-rtl.tsx do?
textarea-rtl.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in textarea-rtl.tsx?
textarea-rtl.tsx defines 1 function(s): TextareaRtl.
What does textarea-rtl.tsx depend on?
textarea-rtl.tsx imports 4 module(s): field, language-selector, react, textarea.
Where is textarea-rtl.tsx in the architecture?
textarea-rtl.tsx is located at apps/v4/examples/base/textarea-rtl.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free