Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
React Slick | 10,866 | 9,197 | 1,235 | 24 days ago | 115 | April 17, 2022 | 465 | mit | JavaScript | |
React carousel component | ||||||||||
Keen Slider | 3,809 | 35 | 2 months ago | 100 | September 19, 2022 | 44 | mit | TypeScript | ||
The HTML touch slider carousel with the most native feeling you will get. | ||||||||||
Splide | 3,658 | 32 | 17 days ago | 148 | September 21, 2022 | 24 | mit | TypeScript | ||
Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors. | ||||||||||
React Image Gallery | 3,344 | 517 | 92 | 17 days ago | 110 | July 30, 2022 | 14 | mit | JavaScript | |
React carousel image gallery component with thumbnail support 🖼 | ||||||||||
Embla Carousel | 3,080 | 3 | 16 | 2 days ago | 184 | September 12, 2022 | 9 | mit | TypeScript | |
www.embla-carousel.com — A lightweight carousel library with fluid motion and great swipe precision. | ||||||||||
Nuka Carousel | 2,851 | 491 | 133 | 10 days ago | 131 | September 22, 2022 | 23 | other | TypeScript | |
Small, fast, and accessibility-first React carousel library with easily customizable UI and behavior to fit your brand and site. | ||||||||||
React Awesome Slider | 2,601 | 42 | 13 | 4 months ago | 45 | February 21, 2020 | 76 | mit | JavaScript | |
React content transition slider. Awesome Slider is a 60fps, light weight, performant component that renders an animated set of production ready UI general purpose sliders with fullpage transition support for NextJS and GatsbyJS. 🖥️ 📱 | ||||||||||
React Responsive Carousel | 2,371 | 794 | 137 | 2 months ago | 122 | March 03, 2022 | 28 | mit | TypeScript | |
React.js Responsive Carousel (with Swipe) | ||||||||||
Egjs Flicking | 2,305 | 3 | 14 | 3 days ago | 107 | September 15, 2022 | 39 | mit | TypeScript | |
🎠 ♻️ Everyday 30 million people experience. It's reliable, flexible and extendable carousel. | ||||||||||
React Images | 2,288 | 1,129 | 180 | 2 years ago | 77 | April 29, 2021 | 49 | mit | JavaScript | |
🌄 A mobile-friendly, highly customizable, carousel component for displaying media in ReactJS |
npm
npm install react-slick --save
yarn
yarn add react-slick
Also install slick-carousel for css and font
npm install slick-carousel
// Import css files
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
or add cdn link in your html
<link
rel="stylesheet"
type="text/css"
charset="UTF-8"
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"
/>
<link
rel="stylesheet"
type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"
/>
import React from "react";
import Slider from "react-slick";
export default function SimpleSlider() {
var settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1
};
return (
<Slider {...settings}>
<div>
<h3>1</h3>
</div>
<div>
<h3>2</h3>
</div>
<div>
<h3>3</h3>
</div>
<div>
<h3>4</h3>
</div>
<div>
<h3>5</h3>
</div>
<div>
<h3>6</h3>
</div>
</Slider>
);
}
For all available props, go here.
For all available methods, go here
Want to run demos locally
git clone https://github.com/akiran/react-slick
cd react-slick
npm install
npm start
open http://localhost:8080
Join our discord channel to discuss react-slick bugs and ask for help
Please see the contributing guidelines