1. framework components
  2. carousel

Carousel

Navigate through a collection of slides with controls and indicators.

Warning

This feature is currently marked as beta and not intended for production use. It may receive breaking changes before its stable release.

Breaking convention in Skeleton, some portions of this component are provided “headless”. Meaning no default styles are applied out of the box. This ensures you retain full control of styling for maximum flexibility.

Overlapping Controls

Introduce supporting elements and styles to implement this variation.

Orientation

Apply orientation="vertical" on the root, and apply a set height on the <Carousel.ItemGroup>.

Anatomy

Here’s an overview of how the Carousel component is structured in code:

svelte
<script lang="ts">
	import { Carousel } from '@skeletonlabs/skeleton-svelte';
</script>

<Carousel>
	<Carousel.Control>
		<Carousel.PrevTrigger />
		<Carousel.AutoplayTrigger />
		<Carousel.NextTrigger />
	</Carousel.Control>
	<Carousel.ItemGroup>
		<Carousel.Item />
	</Carousel.ItemGroup>
	<Carousel.IndicatorGroup>
		<Carousel.Indicator />
	</Carousel.IndicatorGroup>
	<Carousel.ProgressText />
</Carousel>

API Reference

Unable to load component information for svelte/carousel

View page on GitHub