badge-rtl.tsx — ui Source File
Architecture documentation for badge-rtl.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9dfcbb7f_cd74_1220_6503_ad3b7a2ff6dc["badge-rtl.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 9dfcbb7f_cd74_1220_6503_ad3b7a2ff6dc --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 8022ad7c_9942_2069_5edb_4c98331ddd62["badge"] 9dfcbb7f_cd74_1220_6503_ad3b7a2ff6dc --> 8022ad7c_9942_2069_5edb_4c98331ddd62 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 9dfcbb7f_cd74_1220_6503_ad3b7a2ff6dc --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] 9dfcbb7f_cd74_1220_6503_ad3b7a2ff6dc --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c style 9dfcbb7f_cd74_1220_6503_ad3b7a2ff6dc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Badge } from "@/examples/radix/ui-rtl/badge"
import { BadgeCheck, BookmarkIcon } from "lucide-react"
import {
useTranslation,
type Translations,
} from "@/components/language-selector"
const translations: Translations = {
en: {
dir: "ltr",
values: {
badge: "Badge",
secondary: "Secondary",
destructive: "Destructive",
outline: "Outline",
verified: "Verified",
bookmark: "Bookmark",
},
},
ar: {
dir: "rtl",
values: {
badge: "شارة",
secondary: "ثانوي",
destructive: "مدمر",
outline: "مخطط",
verified: "متحقق",
bookmark: "إشارة مرجعية",
},
},
he: {
dir: "rtl",
values: {
badge: "תג",
secondary: "משני",
destructive: "הרסני",
outline: "קווי מתאר",
verified: "מאומת",
bookmark: "סימנייה",
},
},
}
export function BadgeRtl() {
const { dir, t } = useTranslation(translations, "ar")
return (
<div className="flex w-full flex-wrap justify-center gap-2" dir={dir}>
<Badge>{t.badge}</Badge>
<Badge variant="secondary">{t.secondary}</Badge>
<Badge variant="destructive">{t.destructive}</Badge>
<Badge variant="outline">{t.outline}</Badge>
<Badge variant="secondary">
<BadgeCheck data-icon="inline-start" />
{t.verified}
</Badge>
<Badge variant="outline">
{t.bookmark}
<BookmarkIcon data-icon="inline-end" />
</Badge>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- badge
- language-selector
- lucide-react
- react
Source
Frequently Asked Questions
What does badge-rtl.tsx do?
badge-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 badge-rtl.tsx?
badge-rtl.tsx defines 1 function(s): BadgeRtl.
What does badge-rtl.tsx depend on?
badge-rtl.tsx imports 4 module(s): badge, language-selector, lucide-react, react.
Where is badge-rtl.tsx in the architecture?
badge-rtl.tsx is located at apps/v4/examples/radix/badge-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