Carousel

Cycle through a set of slides.

Examples

Installation

Install the package, then import only the components a route uses. Exports are tree-shakable.

Install
pnpm add fractalsvelte
Import
<script lang="ts">
	import { Carousel } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { Carousel } from 'fractalsvelte';
</script>

<Carousel />

Props

PropTypeDefaultDescription
slidesSlide[]-The slides to display.
labelstring'Carousel'Accessible label for the trigger.
orientation'horizontal' | 'vertical''horizontal'Controls the carousel layout direction.