Carousel
Horizontal carousel via embla.
packages/ui/src/components/ui/carousel.tsx
Import
Subpath export:
@marktiderman/genesis-uiimport { Carousel } from "@marktiderman/genesis-ui";Exports
Re-exported from
@marktiderman/genesis-ui.- Carousel
- CarouselContent
- CarouselItem
- CarouselPrevious
- CarouselNext
Components
Auto-generated from TypeScript source via
react-docgen-typescript.Carousel
| Prop | Type | Default | Description |
|---|---|---|---|
| opts | Partial<OptionsType> | — | |
| orientation | enum | horizontal | |
| plugins | CreatePluginType<LoosePluginType, {}>[] | — | |
| setApi | ((api: EmblaCarouselType) => void) | — |
CarouselContent
No declared props.
CarouselItem
No declared props.
CarouselPrevious
| Prop | Type | Default | Description |
|---|---|---|---|
| endIcon | ReactNode | — | Optional trailing icon slot. Ignored when `asChild`. |
| loading | boolean | — | Marks the control busy: renders a spinner in the leading slot and makes the control inert (see `disabled`). In `asChild` mode the spinner is not injected — there is no button chrome to put it in — but the control is still made inert, so a "loading" link can't be activated mid-flight. |
| ref | Ref<HTMLButtonElement> | — | |
| size | "default" | "sm" | "lg" | "icon" | null | icon | |
| startIcon | ReactNode | — | Optional leading icon slot (replaced by the spinner while loading). Ignored when `asChild`. |
| testID | string | — | Stable test/automation selector (emitted as `data-testid`). |
| variant | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "gradient" | null | outline |
CarouselNext
| Prop | Type | Default | Description |
|---|---|---|---|
| endIcon | ReactNode | — | Optional trailing icon slot. Ignored when `asChild`. |
| loading | boolean | — | Marks the control busy: renders a spinner in the leading slot and makes the control inert (see `disabled`). In `asChild` mode the spinner is not injected — there is no button chrome to put it in — but the control is still made inert, so a "loading" link can't be activated mid-flight. |
| ref | Ref<HTMLButtonElement> | — | |
| size | "default" | "sm" | "lg" | "icon" | null | icon | |
| startIcon | ReactNode | — | Optional leading icon slot (replaced by the spinner while loading). Ignored when `asChild`. |
| testID | string | — | Stable test/automation selector (emitted as `data-testid`). |
| variant | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "gradient" | null | outline |