Carousel
Description
A slideshow component for cycling through elements
Carousels allow users to cycle through a set of related content, such as images, features, or messages. They are effective for showcasing highlights in a limited space.
The component supports any Tesserae component as a slide and provides automatic or manual navigation.
API reference
public sealed class Carousel : ComponentBase<Carousel, HTMLElement>A horizontal carousel that cycles through a sequence of items (slides) one at a time, with arrows and pagination.
Constructors
Properties
Methods
public Carousel AddSlide(IComponent content)Adds the given slide to the component.
public Carousel AddSlides(params IComponent[] slides)Adds the given slides to the component.
public Carousel OnSlideChange(Action<Carousel> onSlideChanged)Registers a callback invoked when the slide change event fires.
public Carousel SetIndex(int index, bool raiseEvent = true)Sets the index of the component.