Carousel
Carousel cycles through slides inside a CarouselViewport. Set active_index or default_active_index, optionally enable autoplay, and add CarouselStepper for dots or arrows. Prefer manual navigation for accessibility; pause autoplay in app logic when users need control.
- Hero banners, campaigns, and landing-page highlights
- Product or feature tours with a small set of full-width panels
- Image-forward galleries where one slide should dominate the viewport
- Wrap slides in Carousel and set
default_active_indexor controlactive_index. - Add
CarouselViewportcontaining oneCarouselSlideper panel. - Add CarouselStepper for previous/next buttons and page indicators, or drive navigation via
CarouselStateInjection.
Default carousel
Hero-style slides with titles, supporting text, and bottom stepper controls.
Controlled index
Read and drive the active slide from application state via CarouselStateInjection.
Active slide: 1
Autoplay
Automatically advance slides on an interval—use sparingly for ambient marketing content.