({ className, ...props }: React.ComponentProps<"div">)
| 133 | } |
| 134 | |
| 135 | function 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 | |
| 156 | function CarouselItem({ className, ...props }: React.ComponentProps<"div">) { |
| 157 | const { orientation } = useCarousel() |
nothing calls this directly
no test coverage detected