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

kbd-rtl.tsx — ui Source File

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

File tsx DocumentationAtlas Changelog 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  3ed7fec9_db25_1420_1dbe_f986519c733f["kbd-rtl.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  3ed7fec9_db25_1420_1dbe_f986519c733f --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  367f73bc_4b54_f712_b4eb_74943a079a4d["kbd"]
  3ed7fec9_db25_1420_1dbe_f986519c733f --> 367f73bc_4b54_f712_b4eb_74943a079a4d
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  3ed7fec9_db25_1420_1dbe_f986519c733f --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  style 3ed7fec9_db25_1420_1dbe_f986519c733f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Kbd, KbdGroup } from "@/examples/radix/ui-rtl/kbd"

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

const translations: Translations = {
  en: {
    dir: "ltr",
    values: {},
  },
  ar: {
    dir: "rtl",
    values: {},
  },
  he: {
    dir: "rtl",
    values: {},
  },
}

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

  return (
    <div className="flex flex-col items-center gap-4" dir={dir}>
      <KbdGroup>
        <Kbd>⌘</Kbd>
        <Kbd>⇧</Kbd>
        <Kbd>⌥</Kbd>
        <Kbd>⌃</Kbd>
      </KbdGroup>
      <KbdGroup>
        <Kbd>Ctrl</Kbd>
        <span>+</span>
        <Kbd>B</Kbd>
      </KbdGroup>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • kbd
  • language-selector
  • react

Frequently Asked Questions

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