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 fractalsvelteImport
<script lang="ts">
import { Carousel } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Carousel } from 'fractalsvelte';
</script>
<Carousel />Props
| Prop | Type | Default | Description |
|---|---|---|---|
slides | Slide[] | - | The slides to display. |
label | string | 'Carousel' | Accessible label for the trigger. |
orientation | 'horizontal' | 'vertical' | 'horizontal' | Controls the carousel layout direction. |
