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

input-rtl.tsx — ui Source File

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

File tsx DocumentationAtlas SearchAPI 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  bf52ee5c_c4b3_3e50_ae92_ab9ecc0f75fd["input-rtl.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  bf52ee5c_c4b3_3e50_ae92_ab9ecc0f75fd --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  7e9c1e20_5a8a_4152_90a3_40c280dc340e["field"]
  bf52ee5c_c4b3_3e50_ae92_ab9ecc0f75fd --> 7e9c1e20_5a8a_4152_90a3_40c280dc340e
  480dda64_480e_8d00_f8b9_f67f82fb7c4b["input"]
  bf52ee5c_c4b3_3e50_ae92_ab9ecc0f75fd --> 480dda64_480e_8d00_f8b9_f67f82fb7c4b
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  bf52ee5c_c4b3_3e50_ae92_ab9ecc0f75fd --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  style bf52ee5c_c4b3_3e50_ae92_ab9ecc0f75fd 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 { Input } from "@/examples/base/ui-rtl/input"

import {
  useTranslation,
  type Translations,
} from "@/components/language-selector"

const translations: Translations = {
  en: {
    dir: "ltr",
    values: {
      apiKey: "API Key",
      placeholder: "sk-...",
      description: "Your API key is encrypted and stored securely.",
    },
  },
  ar: {
    dir: "rtl",
    values: {
      apiKey: "مفتاح API",
      placeholder: "sk-...",
      description: "مفتاح API الخاص بك مشفر ومخزن بأمان.",
    },
  },
  he: {
    dir: "rtl",
    values: {
      apiKey: "מפתח API",
      placeholder: "sk-...",
      description: "מפתח ה-API שלך מוצפן ונשמר בצורה מאובטחת.",
    },
  },
}

export function InputRtl() {
  const { dir, t } = useTranslation(translations, "ar")

  return (
    <Field dir={dir}>
      <FieldLabel htmlFor="input-rtl-api-key">{t.apiKey}</FieldLabel>
      <Input
        id="input-rtl-api-key"
        type="password"
        placeholder={t.placeholder}
        dir={dir}
      />
      <FieldDescription>{t.description}</FieldDescription>
    </Field>
  )
}

Subdomains

Functions

Dependencies

  • field
  • input
  • language-selector
  • react

Frequently Asked Questions

What does input-rtl.tsx do?
input-rtl.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in input-rtl.tsx?
input-rtl.tsx defines 1 function(s): InputRtl.
What does input-rtl.tsx depend on?
input-rtl.tsx imports 4 module(s): field, input, language-selector, react.
Where is input-rtl.tsx in the architecture?
input-rtl.tsx is located at apps/v4/examples/base/input-rtl.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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