item-rtl.tsx — ui Source File
Architecture documentation for item-rtl.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 41b68539_a4b5_3ee1_a8f7_8bd530196cd3["item-rtl.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 41b68539_a4b5_3ee1_a8f7_8bd530196cd3 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 c79cdc74_50fb_62bd_465f_35936d2c5eac["button"] 41b68539_a4b5_3ee1_a8f7_8bd530196cd3 --> c79cdc74_50fb_62bd_465f_35936d2c5eac 7f326200_7782_f1b7_85b0_1e1da70c62c8["item"] 41b68539_a4b5_3ee1_a8f7_8bd530196cd3 --> 7f326200_7782_f1b7_85b0_1e1da70c62c8 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 41b68539_a4b5_3ee1_a8f7_8bd530196cd3 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] 41b68539_a4b5_3ee1_a8f7_8bd530196cd3 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c style 41b68539_a4b5_3ee1_a8f7_8bd530196cd3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/examples/radix/ui-rtl/button"
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
ItemMedia,
ItemTitle,
} from "@/examples/radix/ui-rtl/item"
import { BadgeCheckIcon, ChevronRightIcon } from "lucide-react"
import {
useTranslation,
type Translations,
} from "@/components/language-selector"
const translations: Translations = {
en: {
dir: "ltr",
values: {
basicItem: "Basic Item",
basicItemDesc: "A simple item with title and description.",
action: "Action",
verifiedTitle: "Your profile has been verified.",
},
},
ar: {
dir: "rtl",
values: {
basicItem: "عنصر أساسي",
basicItemDesc: "عنصر بسيط يحتوي على عنوان ووصف.",
action: "إجراء",
verifiedTitle: "تم التحقق من ملفك الشخصي.",
},
},
he: {
dir: "rtl",
values: {
basicItem: "פריט בסיסי",
basicItemDesc: "פריט פשוט עם כותרת ותיאור.",
action: "פעולה",
verifiedTitle: "הפרופיל שלך אומת.",
},
},
}
export function ItemRtl() {
const { dir, t } = useTranslation(translations, "ar")
return (
<div className="flex w-full max-w-md flex-col gap-6" dir={dir}>
<Item variant="outline" dir={dir}>
<ItemContent>
<ItemTitle>{t.basicItem}</ItemTitle>
<ItemDescription>{t.basicItemDesc}</ItemDescription>
</ItemContent>
<ItemActions>
<Button variant="outline" size="sm">
{t.action}
</Button>
</ItemActions>
</Item>
<Item variant="outline" size="sm" asChild dir={dir}>
<a href="#">
<ItemMedia>
<BadgeCheckIcon className="size-5" />
</ItemMedia>
<ItemContent>
<ItemTitle>{t.verifiedTitle}</ItemTitle>
</ItemContent>
<ItemActions>
<ChevronRightIcon className="size-4" />
</ItemActions>
</a>
</Item>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- item
- language-selector
- lucide-react
- react
Source
Frequently Asked Questions
What does item-rtl.tsx do?
item-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 item-rtl.tsx?
item-rtl.tsx defines 1 function(s): ItemRtl.
What does item-rtl.tsx depend on?
item-rtl.tsx imports 5 module(s): button, item, language-selector, lucide-react, react.
Where is item-rtl.tsx in the architecture?
item-rtl.tsx is located at apps/v4/examples/radix/item-rtl.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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