MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / CarouselContent

Function CarouselContent

src/components/ui/carousel.tsx:135–154  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

133}
134
135function CarouselContent({ className, ...props }: React.ComponentProps<"div">) {
136 const { carouselRef, orientation } = useCarousel()
137
138 return (
139 <div
140 ref={carouselRef}
141 className="overflow-hidden"
142 data-slot="carousel-content"
143 >
144 <div
145 className={cn(
146 "flex",
147 orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
148 className
149 )}
150 {...props}
151 />
152 </div>
153 )
154}
155
156function CarouselItem({ className, ...props }: React.ComponentProps<"div">) {
157 const { orientation } = useCarousel()

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
useCarouselFunction · 0.85

Tested by

no test coverage detected