MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / CarouselContent

Function CarouselContent

packages/react/src/components/carousel.tsx:132–143  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

130}
131
132function CarouselContent({ className, ...props }: React.ComponentProps<"div">) {
133 const { carouselRef, orientation } = useCarousel();
134
135 return (
136 <div ref={carouselRef} className="overflow-hidden" data-slot="carousel-content">
137 <div
138 className={cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className)}
139 {...props}
140 />
141 </div>
142 );
143}
144
145function CarouselItem({ className, ...props }: React.ComponentProps<"div">) {
146 const { orientation } = useCarousel();

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
useCarouselFunction · 0.85

Tested by

no test coverage detected