react-slick

WebJar for react-slick

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

react-slick
Last Version

Last Version

0.24.0
Release Date

Release Date

Type

Type

jar
Description

Description

react-slick
WebJar for react-slick
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/akiran/react-slick

Download react-slick

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-slick/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-slick</artifactId>
    <version>0.24.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-slick/
implementation 'org.webjars.npm:react-slick:0.24.0'
// https://jarcasting.com/artifacts/org.webjars.npm/react-slick/
implementation ("org.webjars.npm:react-slick:0.24.0")
'org.webjars.npm:react-slick:jar:0.24.0'
<dependency org="org.webjars.npm" name="react-slick" rev="0.24.0">
  <artifact name="react-slick" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-slick', version='0.24.0')
)
libraryDependencies += "org.webjars.npm" % "react-slick" % "0.24.0"
[org.webjars.npm/react-slick "0.24.0"]

Dependencies

compile (5)

Group / Artifact Type Version
org.webjars.npm : json2mq jar [0.2.0,0.3)
org.webjars.npm : resize-observer-polyfill jar [1.5.0,2)
org.webjars.npm : lodash.debounce jar [4.0.8,5)
org.webjars.npm : classnames jar [2.2.5,3)
org.webjars.npm : enquire.js jar [2.1.6,3)

Project Modules

There are no modules declared in this project.

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

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

<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"
/>

PlayGround

Example

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>
  );
}

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

Versions

Version
0.24.0
0.23.2
0.23.1
0.21.0
0.14.11
0.14.5
0.12.2
0.12.1
0.12.0
0.11.1