Home / Function/ CarouselContent() — ui Function Reference

CarouselContent() — ui Function Reference

Architecture documentation for the CarouselContent() function in carousel.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  bef4d678_3d58_5763_1acb_91a528b83bf7["CarouselContent()"]
  34ea8762_b6f9_1326_4ee4_e5f05e66390a["carousel.tsx"]
  bef4d678_3d58_5763_1acb_91a528b83bf7 -->|defined in| 34ea8762_b6f9_1326_4ee4_e5f05e66390a
  16e3bfe9_3945_1248_4edb_97d104cf9a3e["useCarousel()"]
  bef4d678_3d58_5763_1acb_91a528b83bf7 -->|calls| 16e3bfe9_3945_1248_4edb_97d104cf9a3e
  style bef4d678_3d58_5763_1acb_91a528b83bf7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/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>
  )
}

Subdomains

Frequently Asked Questions

What does CarouselContent() do?
CarouselContent() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/carousel.tsx.
Where is CarouselContent() defined?
CarouselContent() is defined in apps/v4/registry/new-york-v4/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