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
  1e9a466e_8001_dd0f_ef11_99e65cfc8612["label-rtl.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  1e9a466e_8001_dd0f_ef11_99e65cfc8612 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  3a78bac7_f7e1_bd62_bf90_067c8b71835a["checkbox"]
  1e9a466e_8001_dd0f_ef11_99e65cfc8612 --> 3a78bac7_f7e1_bd62_bf90_067c8b71835a
  1694dbfa_4abe_3ae7_75bf_e2205e001104["label"]
  1e9a466e_8001_dd0f_ef11_99e65cfc8612 --> 1694dbfa_4abe_3ae7_75bf_e2205e001104
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  1e9a466e_8001_dd0f_ef11_99e65cfc8612 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  style 1e9a466e_8001_dd0f_ef11_99e65cfc8612 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Checkbox } from "@/examples/radix/ui-rtl/checkbox"
import { Label } from "@/examples/radix/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/radix/label-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