<Slider/>
Slider is a wrapper for all the Slide elements. There is also a tray element inside it.
Import
import {Slider} from "react-scroll-snap-anime-slider";
Usage
<Slider
id="my-slider"
aria-label="my slider"
>
// Slide elements
</Slider>
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
Any DIV Props | React.HTMLAttributes<HTMLDivElement> | No | DIV Element props | |
trayProps | React.HTMLAttributes<HTMLDivElement> | No | Props to the slider tray |
CSS
You can override the default style by using these class names.
Rule Name | Description |
---|---|
.rssas-slider | For Slider |
.rssas-slider-tray | For tray DIV |