@get-set/gs-carousel

1.0.97 • Public • Published

Get-Set Carousel

Description

Advanced level React carousel plugin

Installation

To install this package, run:

npm i @get-set/gs-carousel

Usage

import GSCarousel from '@get-set/gs-carousel';

export default function Carousel() {
  return (
    <GSCarousel 
      slidesToShow={2}
      slidesToScroll={1}
      gap='2rem'
      focusOnSelect
      autoplay
    >
      <div> //GSCarousel 1-st item
        <img src="image1.jpg" />
      </div>
      <p> //GSCarousel 2-nd item
        <span>text1</span>
        <a>link</a>
      </p>
      <img src="image3.jpg" /> //GSCarousel 3-rd item
      <section> //GSCarousel 4-th item
        <img src="image4.jpg" />
      </section>
    </GSCarousel>
  )
}

Props

You can see all properties using jshint

Package Sidebar

Install

npm i @get-set/gs-carousel

Weekly Downloads

124

Version

1.0.97

License

ISC

Unpacked Size

162 kB

Total Files

50

Last publish

Collaborators

  • get-set