react-slick

by akiran

akiran /react-slick

React carousel component

8.8K Stars 1.8K Forks Last release: about 1 month ago (0.27.10) MIT License 1.2K Commits 37 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

react-slick

Backers on Open Collective Sponsors on Open Collective Join the chat at https://gitter.im/akiran/react-slick

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

Documentation

:warning: Alert

:construction: [email protected]* releases are experimental.
:whitecheckmark: Use [email protected] in production until we make our next stable release ([email protected])
:pray: We invite you to test [email protected]* in dev environment and report any breaking changes.

Installation

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


PlayGround

Example

import React from "react";
import Slider from "react-slick";

class SimpleSlider extends React.Component { render() { var settings = { dots: true, infinite: true, speed: 500, slidesToShow: 1, slidesToScroll: 1 }; return (

1

2

3

4

5

6

); } }

Props

For all available props, go here.

Methods

For all available methods, go here

Development

Want to run demos locally

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

Contributing

Please see the contributing guidelines

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.