({ className, overflowHidden = true, ...props }: CarouselContentProps)
| 151 | } |
| 152 | |
| 153 | const 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 | |
| 163 | const 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} />; |
nothing calls this directly
no test coverage detected