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
  2826f641_ef6b_a9f2_70bf_b8c818db942b["CarouselContent()"]
  7e7652ce_fc95_8d6e_4506_c860f14d1d73["carousel.tsx"]
  2826f641_ef6b_a9f2_70bf_b8c818db942b -->|defined in| 7e7652ce_fc95_8d6e_4506_c860f14d1d73
  0f21d8da_a9b4_9bf1_b6da_e8ba979e307c["useCarousel()"]
  2826f641_ef6b_a9f2_70bf_b8c818db942b -->|calls| 0f21d8da_a9b4_9bf1_b6da_e8ba979e307c
  style 2826f641_ef6b_a9f2_70bf_b8c818db942b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/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" ? "-ms-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/examples/radix/ui-rtl/carousel.tsx.
Where is CarouselContent() defined?
CarouselContent() is defined in apps/v4/examples/radix/ui-rtl/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