CarouselWithGap() — ui Function Reference
Architecture documentation for the CarouselWithGap() function in carousel-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1199b779_9a73_b2f5_01e6_172827ccacb7["CarouselWithGap()"] b38dd3ab_c157_8ba1_06c1_4b3efc037664["carousel-example.tsx"] 1199b779_9a73_b2f5_01e6_172827ccacb7 -->|defined in| b38dd3ab_c157_8ba1_06c1_4b3efc037664 style 1199b779_9a73_b2f5_01e6_172827ccacb7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/carousel-example.tsx lines 77–99
function CarouselWithGap() {
return (
<Example title="With Gap">
<Carousel className="mx-auto max-w-xs sm:max-w-sm">
<CarouselContent className="-ml-1">
{Array.from({ length: 5 }).map((_, index) => (
<CarouselItem key={index} className="pl-1 md:basis-1/2">
<div className="p-1">
<Card>
<CardContent className="flex aspect-square items-center justify-center p-6">
<span className="text-2xl font-semibold">{index + 1}</span>
</CardContent>
</Card>
</div>
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious className="hidden sm:inline-flex" />
<CarouselNext className="hidden sm:inline-flex" />
</Carousel>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does CarouselWithGap() do?
CarouselWithGap() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/carousel-example.tsx.
Where is CarouselWithGap() defined?
CarouselWithGap() is defined in apps/v4/registry/bases/radix/examples/carousel-example.tsx at line 77.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free