({ className, ...props }: React.ComponentProps<"div">)
| 154 | } |
| 155 | |
| 156 | function 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 | |
| 174 | function CarouselPrevious({ |
| 175 | className, |
nothing calls this directly
no test coverage detected