Quick Start
Get the latest version from NPM:
$ npm install @splidejs/react-splide
Import CSS and components:
import { Splide, SplideSlide } from '@splidejs/react-splide';
import '@splidejs/splide/dist/css/themes/splide-default.min.css';
export function Slider() {
return (
<Splide options={ { rewind: true } }>
<SplideSlide>
<img src="image1.jpg" alt="Image 1"/>
</SplideSlide>
<SplideSlide>
<img src="image2.jpg" alt="Image 2"/>
</SplideSlide>
</Splide>
);
}
Visit here for more details.
License
React Splide and Splide are released under the MIT license.
© 2021 Naotoshi Fujita