(props: ComponentProps<"div">)
| 148 | }; |
| 149 | |
| 150 | export const CarouselContent = (props: ComponentProps<"div">) => { |
| 151 | const [local, rest] = splitProps(props, ["class"]); |
| 152 | const { carouselRef, orientation } = useCarousel(); |
| 153 | |
| 154 | return ( |
| 155 | <div ref={carouselRef} class="overflow-hidden"> |
| 156 | <div |
| 157 | class={cn( |
| 158 | "flex", |
| 159 | orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", |
| 160 | local.class, |
| 161 | )} |
| 162 | {...rest} |
| 163 | /> |
| 164 | </div> |
| 165 | ); |
| 166 | }; |
| 167 | |
| 168 | export const CarouselItem = (props: ComponentProps<"div">) => { |
| 169 | const [local, rest] = splitProps(props, ["class"]); |
nothing calls this directly
no test coverage detected