MCPcopy Create free account
hub / github.com/better-auth/examples / CarouselContent

Function CarouselContent

astro-example/src/components/ui/carousel.tsx:150–166  ·  view source on GitHub ↗
(props: ComponentProps<"div">)

Source from the content-addressed store, hash-verified

148};
149
150export 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
168export const CarouselItem = (props: ComponentProps<"div">) => {
169 const [local, rest] = splitProps(props, ["class"]);

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
useCarouselFunction · 0.70

Tested by

no test coverage detected