CarouselContent() — ui Function Reference
Architecture documentation for the CarouselContent() function in carousel.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4c001ad0_a3c9_6ec7_6d40_dadcfcfc9a0f["CarouselContent()"] 8bc8380a_deff_8ce1_5278_60cc3b26d9d7["carousel.tsx"] 4c001ad0_a3c9_6ec7_6d40_dadcfcfc9a0f -->|defined in| 8bc8380a_deff_8ce1_5278_60cc3b26d9d7 89d66177_a2c8_f480_9a6a_b1da0d7adbbe["useCarousel()"] 4c001ad0_a3c9_6ec7_6d40_dadcfcfc9a0f -->|calls| 89d66177_a2c8_f480_9a6a_b1da0d7adbbe style 4c001ad0_a3c9_6ec7_6d40_dadcfcfc9a0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/ui/carousel.tsx lines 135–154
function CarouselContent({ className, ...props }: React.ComponentProps<"div">) {
const { carouselRef, orientation } = useCarousel()
return (
<div
ref={carouselRef}
className="overflow-hidden"
data-slot="carousel-content"
>
<div
className={cn(
"flex",
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
className
)}
{...props}
/>
</div>
)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does CarouselContent() do?
CarouselContent() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/carousel.tsx.
Where is CarouselContent() defined?
CarouselContent() is defined in apps/v4/registry/bases/radix/ui/carousel.tsx at line 135.
What does CarouselContent() call?
CarouselContent() calls 1 function(s): useCarousel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free