Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-slick

> 前端框架
Open source

React carousel component

11.9K stars0 likes2 views
WebsiteGitHub

About

React carousel component

react-slick

Carousel component built with React. It is a react port of slick carousel

Documentation

Installation

npm

bash
npm install react-slick --save

yarn

bash
yarn add react-slick

Also install slick-carousel for css and font

bash
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

xml
<link
  rel="stylesheet"
  type="text/css"
  charset="UTF-8"
  href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css"
/>
<link
  rel="stylesheet"
  type="text/css"
  href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css"
/>

PlayGround

Example

javascript
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}>
      

      

      

      

      

      

    </Slider>
  );
}

Props

For all available props, go here.

Methods

For all available methods, go here

Development

Want to run demos locally

bash
git clone https://github.com/akiran/react-slick
cd react-slick
npm install
npm start
open http://localhost:8080

Community

Join our discord channel to discuss react-slick bugs and ask for help

Contributing

Please see the contributing guidelines

Issues· 489 open

View all issuesOpen on GitHub
  • #2444

    React error #130 when bundled by Vite 8 / rolldown: default import is the CJS namespace, not the Slider class

    Updated Sep 9, 2026
  • #2333

    problem with responsive when mounting the component

    Updated Aug 31, 2026
  • #2435

    Bug: Wrong calculation of the initial state when the responsive options are provided.

    Updated Aug 31, 2026
  • #2446

    Responsive breakpoints not applied on initial render in react-slick v0.31.0

    Updated Aug 31, 2026
  • #2206

    Element type is invalid: expected a string (for built-in components) or a class/function...

    Updated Aug 15, 2026
  • #2376

    Unexpected Behavior in Vertical Mode Swipe

    Updated May 15, 2026
  • #2442

    Why is the progressive lazy load timer set to 1 second

    Updated Jan 2, 2026
  • #2443

    Feature Request: Add offset prop for autoplay initial delay

    Updated Jan 2, 2026
  • #1875

    react-slick is not working correctly in RTL language

    Updated Dec 9, 2025
  • #1535

    Enforce ARIA rule

    Updated Dec 8, 2025

> Tags

JavaScriptcarouselreactslick

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架