CarouselSize() — ui Function Reference
Architecture documentation for the CarouselSize() function in carousel-size.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 604a0c0b_61ca_3d2c_8777_96246f785c11["CarouselSize()"] 0102bf48_98a8_e6db_0ffc_3e61d4d3d6d0["carousel-size.tsx"] 604a0c0b_61ca_3d2c_8777_96246f785c11 -->|defined in| 0102bf48_98a8_e6db_0ffc_3e61d4d3d6d0 style 604a0c0b_61ca_3d2c_8777_96246f785c11 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/carousel-size.tsx lines 11–36
export default function CarouselSize() {
return (
<Carousel
opts={{
align: "start",
}}
className="w-full max-w-[12rem] sm:max-w-xs md:max-w-sm"
>
<CarouselContent>
{Array.from({ length: 5 }).map((_, index) => (
<CarouselItem key={index} className="basis-1/2 lg:basis-1/3">
<div className="p-1">
<Card>
<CardContent className="flex aspect-square items-center justify-center p-6">
<span className="text-3xl font-semibold">{index + 1}</span>
</CardContent>
</Card>
</div>
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CarouselSize() do?
CarouselSize() is a function in the ui codebase, defined in apps/v4/examples/base/carousel-size.tsx.
Where is CarouselSize() defined?
CarouselSize() is defined in apps/v4/examples/base/carousel-size.tsx at line 11.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free