react-glidejs
A React wrapper for glide.js.
Install
npm install --save react-glidejs
OR
yarn add react-glidejs
Usage
A lightweight React wrapper for Glide.js by @jedrzejchalubek. React-glidejs exposes all the options from the Glide.js API as props. View them all here: https://glidejs.com/docs/options/
Import the Glide
component. Every React node (either a DOM element or a JSX
Fragment) is treated as a slide. Some additional props have also been
added for easier customisation, e.g.leftArrowComponent
and
rightArrowComponent
props which accept a React node.
The goal is to keep the API surface as small and lightweight as possible, while
also providing an easy way for customisation in line with common React
patterns. Therefore, this library uses react-transition-group
under the hood
to provide an easy way to add custom slide animations.
Example Usage
;; ;; ;
License
MIT © jkhaui