1.4.0 • Published 11 months ago

@muhmdajeer/my-package v1.4.0

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

react-hzslick

Backers on Open Collective Sponsors on Open Collective

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

Documentation

Installation

npm

npm install react-hzslick --save

yarn

yarn add react-hzslick

Also install hz-hzslickcarousel for css and font

npm install hz-hzslickcarousel

// Import css files
import "hz-hzslickcarousel/hzslick/hzslick.css";
import "hz-hzslickcarousel/hzslick/hz-hzslicktheme.css";

or add cdn link in your html

<link
  rel="stylesheet"
  type="text/css"
  charset="UTF-8"
  href="https://cdnjs.cloudflare.com/ajax/libs/hz-hzslickcarousel/1.8.1/hzslick.min.css"
/>
<link
  rel="stylesheet"
  type="text/css"
  href="https://cdnjs.cloudflare.com/ajax/libs/hz-hzslickcarousel/1.8.1/hz-hzslicktheme.min.css"
/>

PlayGround

Example

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

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-hzslick
cd react-hzslick
npm install
npm start
open http://localhost:8080

Community

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

Contributing

Please see the contributing guidelines

1.4.0

11 months ago

1.3.0

11 months ago

1.2.0

11 months ago

1.0.30

11 months ago

1.0.25

11 months ago

1.0.20

11 months ago

1.0.19

11 months ago

1.0.17

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago