Improved RTL version of React-Slick
npm install react-slick-pnth##### The aim of this package is to fix React-slick's RTL bug that has been reported since 2018 but no one has successfully fixed it.
##### This package is originally designed base on Akiran's react-slick
npm
``bash`
npm install react-slick-pnth --save
yarn
`bash`
yarn add react-slick-pnth
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
`html`
rel="stylesheet"
type="text/css"
charset="UTF-8"
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"
/>
rel="stylesheet"
type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"
/>
`js
import React from "react";
import Slider from "react-slick-pnth";
export default function SimpleSlider() {
var settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1
};
return (
1
2
3
4
5
6
);
}
`
For all available props, go here.
For all available methods, go here
Want to run demos locally
`bash``
git clone https://github.com/ryangphan/react-slick-pnth
cd react-slick-pnth
npm install
npm start
open http://localhost:8080
Please see the contributing guidelines