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

Function CarouselItem

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

Source from the content-addressed store, hash-verified

143}
144
145function CarouselItem({ className, ...props }: React.ComponentProps<"div">) {
146 const { orientation } = useCarousel();
147
148 return (
149 <div
150 role="group"
151 aria-roledescription="slide"
152 data-slot="carousel-item"
153 className={cn(
154 "min-w-0 shrink-0 grow-0 basis-full",
155 orientation === "horizontal" ? "pl-4" : "pt-4",
156 className,
157 )}
158 {...props}
159 />
160 );
161}
162
163function CarouselPrevious({
164 className,

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
useCarouselFunction · 0.85

Tested by

no test coverage detected