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

Function CarouselItem

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

Source from the content-addressed store, hash-verified

154}
155
156function CarouselItem({ className, ...props }: React.ComponentProps<"div">) {
157 const { orientation } = useCarousel()
158
159 return (
160 <div
161 role="group"
162 aria-roledescription="slide"
163 data-slot="carousel-item"
164 className={cn(
165 "min-w-0 shrink-0 grow-0 basis-full",
166 orientation === "horizontal" ? "pl-4" : "pt-4",
167 className
168 )}
169 {...props}
170 />
171 )
172}
173
174function CarouselPrevious({
175 className,

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
useCarouselFunction · 0.85

Tested by

no test coverage detected