Gathering detailed insights and metrics for react-glider-carousel
Gathering detailed insights and metrics for react-glider-carousel
npm install react-glider-carousel
Typescript
Module System
57.2
Supply Chain
88.9
Quality
74.9
Maintenance
100
Vulnerability
100
License
TypeScript (88.7%)
JavaScript (11.3%)
Total Downloads
56,675
Last Day
2
Last Week
17
Last Month
33
Last Year
865
4 Stars
13 Commits
1 Watching
14 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.1.2
Package Id
react-glider-carousel@0.1.2
Size
5.36 kB
Publised On
10 Jun 2019
Cumulative downloads
Total Downloads
Last day
-50%
2
Compared to previous day
Last week
112.5%
17
Compared to previous week
Last month
266.7%
33
Compared to previous month
Last year
-53.2%
865
Compared to previous year
This package exports a React Component that can be use to create carousels using Glider.js (version 1.6.6).
As the author himself puts it:
A fast, light-weight, dependency free, responsive, accessible, extendable, native scrolling list with paging controls, methods and events. (< 2.8kb gzipped!)
Demos and full documentation available on Github Pages: https://nickpiscitelli.github.io/Glider.js/
To use this package run yarn add react-glider-carousel
or npm install --save react-glider-carousel
.
If you want the default styles you also need to download Glider.js stylesheet and reference it in your HTML:
1<link rel="stylesheet" type="text/css" href="glider.css">
or JS:
1import './src/glider.css';
Warning To be able to import the stylesheet in your JavaScript you might need an appropriate way (ie. specific loaders for Webpack).
To use the component just import in your React files and use it to wrap your slides
1import GliderComponent from 'react-glider-carousel'; 2 3const MyComponent = () => { 4 return ( 5 <GliderComponent> 6 <div>Slide 1</div> 7 <div>Slide 2</div> 8 <div>Slide 3</div> 9 <div>Slide 4</div> 10 </GliderComponent> 11 ) 12}
You can use the component with the following props
1<GliderComponent 2 hasArrows={boolean} 3 hasDots={boolean} 4 arrows={{ 5 prev: HTMLElement | string, 6 next: HTMLElement | string 7 }} 8 dots={HTMLElement | string} 9 10 // Glider options 11 settings={{}(see below)} 12 13 // eventListeners 14 gliderLoaded={(event: IGliderEvent) => void} 15 gliderRefresh={(event: IGliderEvent) => void} 16 gliderAnimated={(event: IGliderEvent) => void} 17 gliderAdd={(event: IGliderEvent) => void} 18 gliderRemove={(event: IGliderEvent) => void} 19 gliderDestroy={(event: IGliderEvent) => void} 20 gliderSlideVisible={(event: IGliderEvent) => void} 21 gliderSlideHidden={(event: IGliderEvent) => void} 22> 23 <HTMLElements or ReactComponents /> 24</GliderComponent>
The component prop settings
are a mirror of Glider options
1 { 2 slidesToShow?: number | string; 3 slidesToScroll?: number | string; 4 itemWidth?: number; 5 exactWidth?: boolean; 6 scrollLock?: boolean; 7 scrollLockDelay?: number; 8 resizeLock?: boolean; 9 responsive?: IGliderBreakpoint[]; 10 rewind?: boolean; 11 scrollPropagate?: boolean; 12 draggable?: boolean; 13 dragVelocity?: number; 14 duration?: number; 15 propagateEvent?: boolean; 16 skipTrack?: boolean; 17 }
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
43 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More