logo-icon
STW UI

Carousel

Carousel show images or content in a scrollable area.

Usage

svelte
import { Carousel } from 'stwui';
import type { CarouselSlide } from 'stwui/types';
// OR
import Carousel from 'stwui/carousel'; // for tree shaking
import type CarouselSlide from 'stwui/types/carousel-slide'; // for tree shaking

Basic

Carousel Props

slides CarouselSlide[] []
activeSlide number 0
rotation number 0

Carousel Class Identifiers

stwui-carousel-wrapper
stwui-carousel-slide-indicators-wrapper
stwui-carousel-slides-wrapper
stwui-carousel-previous
stwui-carousel-next