Genesis
@stable

Carousel

Horizontal carousel via embla.

packages/ui/src/components/ui/carousel.tsx

Import
Subpath export: @marktiderman/genesis-ui
import { 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

PropTypeDefaultDescription
optsPartial<OptionsType>—
orientationenumhorizontal
pluginsCreatePluginType<LoosePluginType, {}>[]—
setApi((api: EmblaCarouselType) => void)—

CarouselContent

No declared props.

CarouselItem

No declared props.

CarouselPrevious

PropTypeDefaultDescription
endIconReactNode—Optional trailing icon slot. Ignored when `asChild`.
loadingboolean—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.
refRef<HTMLButtonElement>—
size"default" | "sm" | "lg" | "icon" | nullicon
startIconReactNode—Optional leading icon slot (replaced by the spinner while loading). Ignored when `asChild`.
testIDstring—Stable test/automation selector (emitted as `data-testid`).
variant"link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "gradient" | nulloutline

CarouselNext

PropTypeDefaultDescription
endIconReactNode—Optional trailing icon slot. Ignored when `asChild`.
loadingboolean—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.
refRef<HTMLButtonElement>—
size"default" | "sm" | "lg" | "icon" | nullicon
startIconReactNode—Optional leading icon slot (replaced by the spinner while loading). Ignored when `asChild`.
testIDstring—Stable test/automation selector (emitted as `data-testid`).
variant"link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "gradient" | nulloutline