react-blaze-slider
TypeScript icon, indicating that this package has built-in type declarations

1.7.2 • Public • Published

react-blaze-slider

A lightweight hook to integrate blaze-slider with react


Installation

npm i blaze-slider react-blaze-slider

Usage

import { useBlazeSlider } from 'react-blaze-slider'
import 'blaze-slider/dist/blaze.css'

function Example() {
  const ref = useBlazeSlider({
    all: {
      slidesToShow: 3,
    },
  })

  return (
    <div className="App">
      <div className="blaze-slider" ref={ref}>
        <div className="blaze-container">
          <div className="blaze-track-container">
            <div className="blaze-track">
              <div> 1 </div>
              <div> 2 </div>
              <div> 3 </div>
              <div> 4 </div>
              <div> 5 </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}

Example

Checkout this sandbox to see the live demo


Blaze Slider Documentation

check out the Website blaze-slider.dev for Documentation about the blaze-slider core library.

The documentation is divided into several sections:


License

MIT

/react-blaze-slider/

    Package Sidebar

    Install

    npm i react-blaze-slider

    Weekly Downloads

    163

    Version

    1.7.2

    License

    MIT

    Unpacked Size

    6.38 kB

    Total Files

    9

    Last publish

    Collaborators

    • manantank