CarouselContent() — ui Function Reference
Architecture documentation for the CarouselContent() function in carousel.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD a3e7e3ad_a4f5_4bc1_d35e_f79000a911ea["CarouselContent()"] afc3006a_a233_0ac7_934f_baf526af7bef["carousel.tsx"] a3e7e3ad_a4f5_4bc1_d35e_f79000a911ea -->|defined in| afc3006a_a233_0ac7_934f_baf526af7bef 1e31212d_a6d2_8c14_8588_c4256ad88c55["useCarousel()"] a3e7e3ad_a4f5_4bc1_d35e_f79000a911ea -->|calls| 1e31212d_a6d2_8c14_8588_c4256ad88c55 style a3e7e3ad_a4f5_4bc1_d35e_f79000a911ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/carousel.tsx lines 134–153
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/examples/base/ui/carousel.tsx.
Where is CarouselContent() defined?
CarouselContent() is defined in apps/v4/examples/base/ui/carousel.tsx at line 134.
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