spinner-rtl.tsx — ui Source File
Architecture documentation for spinner-rtl.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 69b12d36_2433_e0f4_10a1_3a40af2cd2b8["spinner-rtl.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 69b12d36_2433_e0f4_10a1_3a40af2cd2b8 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 dd79944f_d284_50b0_3795_7290597eafe2["item"] 69b12d36_2433_e0f4_10a1_3a40af2cd2b8 --> dd79944f_d284_50b0_3795_7290597eafe2 883da1ad_449f_ee4a_3133_4f4e76e38d95["spinner"] 69b12d36_2433_e0f4_10a1_3a40af2cd2b8 --> 883da1ad_449f_ee4a_3133_4f4e76e38d95 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] 69b12d36_2433_e0f4_10a1_3a40af2cd2b8 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c style 69b12d36_2433_e0f4_10a1_3a40af2cd2b8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Item,
ItemContent,
ItemMedia,
ItemTitle,
} from "@/examples/base/ui-rtl/item"
import { Spinner } from "@/examples/base/ui-rtl/spinner"
import {
useTranslation,
type Translations,
} from "@/components/language-selector"
const translations: Translations = {
en: {
dir: "ltr",
values: {
title: "Processing payment...",
amount: "$100.00",
},
},
ar: {
dir: "rtl",
values: {
title: "جاري معالجة الدفع...",
amount: "١٠٠.٠٠ دولار",
},
},
he: {
dir: "rtl",
values: {
title: "מעבד תשלום...",
amount: "$100.00",
},
},
}
export function SpinnerRtl() {
const { dir, t } = useTranslation(translations, "ar")
return (
<div
className="flex w-full max-w-xs flex-col gap-4 [--radius:1rem]"
dir={dir}
>
<Item variant="muted" dir={dir}>
<ItemMedia>
<Spinner />
</ItemMedia>
<ItemContent>
<ItemTitle className="line-clamp-1">{t.title}</ItemTitle>
</ItemContent>
<ItemContent className="flex-none justify-end">
<span className="text-sm tabular-nums">{t.amount}</span>
</ItemContent>
</Item>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- item
- language-selector
- react
- spinner
Source
Frequently Asked Questions
What does spinner-rtl.tsx do?
spinner-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 spinner-rtl.tsx?
spinner-rtl.tsx defines 1 function(s): SpinnerRtl.
What does spinner-rtl.tsx depend on?
spinner-rtl.tsx imports 4 module(s): item, language-selector, react, spinner.
Where is spinner-rtl.tsx in the architecture?
spinner-rtl.tsx is located at apps/v4/examples/base/spinner-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