MCPcopy
hub / github.com/untitleduico/react / CarouselContent

Function CarouselContent

components/application/carousel/carousel-base.tsx:153–161  ·  view source on GitHub ↗
({ className, overflowHidden = true, ...props }: CarouselContentProps)

Source from the content-addressed store, hash-verified

151}
152
153const CarouselContent = ({ className, overflowHidden = true, ...props }: CarouselContentProps) => {
154 const { carouselRef, orientation } = useCarousel();
155
156 return (
157 <div ref={carouselRef} className={cx("h-full w-full", overflowHidden && "overflow-hidden")}>
158 <div className={cx("flex max-h-full", orientation === "horizontal" ? "" : "flex-col", className)} {...props} />
159 </div>
160 );
161};
162
163const CarouselItem = ({ className, ...props }: ComponentPropsWithRef<"div">) => {
164 return <div role="group" aria-roledescription="slide" className={cx("min-w-0 shrink-0 grow-0 basis-full", className)} {...props} />;

Callers

nothing calls this directly

Calls 1

useCarouselFunction · 0.85

Tested by

no test coverage detected