AsterUIDocsv1.0.2

Docs / Component reference

Carousel

Show a sequence of panels in one region. Use the position indicators or previous and next controls to move through them.

Install

sh
npx @fierst/ui@1.0.2 add carousel

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/carousel: Carousel.

Download the registry source for carousel 1.0.2.

API contracts

ts
export function* Carousel(
  props: {
    slides: readonly { id: string; content: View }[];
    label?: string;
    class?: string;
  },
  ctx: Ctx,
)