CarouselRtl() — ui Function Reference
Architecture documentation for the CarouselRtl() function in carousel-rtl.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 612b92c2_4d51_af11_7330_604bf6358470["CarouselRtl()"] 1899fd32_ac2c_c271_6dc5_24ee1ef64b41["carousel-rtl.tsx"] 612b92c2_4d51_af11_7330_604bf6358470 -->|defined in| 1899fd32_ac2c_c271_6dc5_24ee1ef64b41 1f123507_4898_918a_05b4_9128b669ff3d["toArabicNumerals()"] 612b92c2_4d51_af11_7330_604bf6358470 -->|calls| 1f123507_4898_918a_05b4_9128b669ff3d style 612b92c2_4d51_af11_7330_604bf6358470 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/carousel-rtl.tsx lines 41–78
export function CarouselRtl() {
const { dir, language } = useTranslation(translations, "ar")
const formatNumber = (num: number): string => {
if (language === "ar") {
return toArabicNumerals(num)
}
return num.toString()
}
return (
<Carousel
dir={dir}
className="w-full max-w-[12rem] sm:max-w-xs"
opts={{
direction: dir,
}}
>
<CarouselContent>
{Array.from({ length: 5 }).map((_, index) => (
<CarouselItem key={index}>
<div className="p-1">
<Card dir={dir}>
<CardContent className="flex aspect-square items-center justify-center p-6">
<span className="text-4xl font-semibold">
{formatNumber(index + 1)}
</span>
</CardContent>
</Card>
</div>
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does CarouselRtl() do?
CarouselRtl() is a function in the ui codebase, defined in apps/v4/examples/radix/carousel-rtl.tsx.
Where is CarouselRtl() defined?
CarouselRtl() is defined in apps/v4/examples/radix/carousel-rtl.tsx at line 41.
What does CarouselRtl() call?
CarouselRtl() calls 1 function(s): toArabicNumerals.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free