Home / File/ textarea-rtl.tsx — ui Source File

textarea-rtl.tsx — ui Source File

Architecture documentation for textarea-rtl.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5b736b3d_4b8d_f6be_a07b_7644ddd24377["textarea-rtl.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  5b736b3d_4b8d_f6be_a07b_7644ddd24377 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  68874b2d_841d_f625_bf4f_104dc94b730e["field"]
  5b736b3d_4b8d_f6be_a07b_7644ddd24377 --> 68874b2d_841d_f625_bf4f_104dc94b730e
  12c0bb0a_da76_6eac_2b32_df2b868babc8["textarea"]
  5b736b3d_4b8d_f6be_a07b_7644ddd24377 --> 12c0bb0a_da76_6eac_2b32_df2b868babc8
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  5b736b3d_4b8d_f6be_a07b_7644ddd24377 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  style 5b736b3d_4b8d_f6be_a07b_7644ddd24377 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import {
  Field,
  FieldDescription,
  FieldLabel,
} from "@/examples/radix/ui-rtl/field"
import { Textarea } from "@/examples/radix/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>
  )
}

Subdomains

Functions

Dependencies

  • field
  • language-selector
  • react
  • textarea

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/radix/textarea-rtl.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free