CarouselWithGap() — ui Function Reference
Architecture documentation for the CarouselWithGap() function in carousel-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 724c4cf4_8e03_fcac_e976_759aa42398f0["CarouselWithGap()"] d2cbee8e_0f01_c3b2_308c_df9bd65ba02d["carousel-example.tsx"] 724c4cf4_8e03_fcac_e976_759aa42398f0 -->|defined in| d2cbee8e_0f01_c3b2_308c_df9bd65ba02d style 724c4cf4_8e03_fcac_e976_759aa42398f0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/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/base/examples/carousel-example.tsx.
Where is CarouselWithGap() defined?
CarouselWithGap() is defined in apps/v4/registry/bases/base/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