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

label-rtl.tsx — ui Source File

Architecture documentation for label-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
  a3c12f16_6af9_023e_63c5_e255025d4bdd["label-rtl.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  a3c12f16_6af9_023e_63c5_e255025d4bdd --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  cc83a0fe_5b64_ae51_20ef_2b5653e9e45f["checkbox"]
  a3c12f16_6af9_023e_63c5_e255025d4bdd --> cc83a0fe_5b64_ae51_20ef_2b5653e9e45f
  7ef314f6_7093_dcb4_c528_ee12b9a57e00["label"]
  a3c12f16_6af9_023e_63c5_e255025d4bdd --> 7ef314f6_7093_dcb4_c528_ee12b9a57e00
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  a3c12f16_6af9_023e_63c5_e255025d4bdd --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  style a3c12f16_6af9_023e_63c5_e255025d4bdd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Checkbox } from "@/examples/base/ui-rtl/checkbox"
import { Label } from "@/examples/base/ui-rtl/label"

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

const translations: Translations = {
  en: {
    dir: "ltr",
    values: {
      label: "Accept terms and conditions",
    },
  },
  ar: {
    dir: "rtl",
    values: {
      label: "قبول الشروط والأحكام",
    },
  },
  he: {
    dir: "rtl",
    values: {
      label: "קבל תנאים והגבלות",
    },
  },
}

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

  return (
    <div className="flex gap-2" dir={dir}>
      <Checkbox id="terms-rtl" dir={dir} />
      <Label htmlFor="terms-rtl" dir={dir}>
        {t.label}
      </Label>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • checkbox
  • label
  • language-selector
  • react

Frequently Asked Questions

What does label-rtl.tsx do?
label-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 label-rtl.tsx?
label-rtl.tsx defines 1 function(s): LabelRtl.
What does label-rtl.tsx depend on?
label-rtl.tsx imports 4 module(s): checkbox, label, language-selector, react.
Where is label-rtl.tsx in the architecture?
label-rtl.tsx is located at apps/v4/examples/base/label-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