Lumeo

Carousel

A carousel with motion and swipe built using scroll snapping.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Carousel />

When to Use

  • Image galleries and product photo showcases
  • Testimonial sliders and customer review rotations
  • Onboarding flows and feature highlight walkthroughs
  • Product showcases where multiple items share limited horizontal space

Pick a value to see it applied live.

API Reference

Prop Type Default Description
ChildContentRenderFragment?nullThe carousel content (CarouselContent, CarouselPrevious, CarouselNext).
OrientationLumeo.OrientationHorizontalScroll direction. Values: Horizontal, Vertical.
LoopboolfalseWhether the carousel wraps around at the ends.
DisabledboolfalseDisables navigation, keyboard interactions, and the prev/next buttons.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.

CarouselContent

Prop Type Default Description
ChildContentRenderFragment?nullThe carousel items.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.

CarouselItem

Prop Type Default Description
ChildContentRenderFragment?nullThe slide content.
Indexint?nullZero-based index of this slide (auto-assigned if omitted).
Totalint?nullOptional total count used for aria-label announcements.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.

CarouselPrevious

Prop Type Default Description
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes. Automatically disables when at the start.

CarouselNext

Prop Type Default Description
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes. Automatically disables when at the end.
  • Tabs — For switching between distinct content panels without sliding
  • ScrollArea — For scrollable content areas with custom scrollbars