// AUTO-GENERATED by scripts/generate-wrappers.mjs — do not edit by hand. // Source: packages/core/manifest.json (component "carousel"). import type { ElementType, ReactNode } from 'react'; import { Carousel as CarouselController, type CarouselOptions } from '@42/core/carousel'; import { C42 } from '../C42'; const DEFAULT_HTML: string | null = "
\n
\n
One
\n
Two
\n
Three
\n
\n
\n \n \n
"; export interface CarouselProps extends Partial { /** Element/tag rendered as the controller root. Defaults to `"div"`. */ as?: ElementType; className?: string; children?: ReactNode; /** Fired on `carousel:change` — detail: `{ index, previousIndex }` */ onChange?: (detail: unknown, event: CustomEvent) => void; /** Extra props are forwarded to the rendered `
` element. */ [key: string]: unknown; } export function Carousel(props: CarouselProps) { const { as, className, children, onChange, defaultIndex, loop, axis, align, slidesToScroll, dragFree, swipe, autoplay, autoplayInterval, pauseOnHover, ...rest } = props; const options = { defaultIndex, loop, axis, align, slidesToScroll, dragFree, swipe, autoplay, autoplayInterval, pauseOnHover } as CarouselOptions; return ( {children as ReactNode} ); }