({ className, ...props }: React.ComponentProps<"div">)
| 143 | } |
| 144 | |
| 145 | function 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 | |
| 163 | function CarouselPrevious({ |
| 164 | className, |
nothing calls this directly
no test coverage detected