Gathering detailed insights and metrics for tiny-slider-react-wrapper
Gathering detailed insights and metrics for tiny-slider-react-wrapper
Gathering detailed insights and metrics for tiny-slider-react-wrapper
Gathering detailed insights and metrics for tiny-slider-react-wrapper
npm install tiny-slider-react-wrapper
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
41 Commits
3 Branches
1 Contributors
Updated on Mar 17, 2020
Latest Version
0.4.3
Package Id
tiny-slider-react-wrapper@0.4.3
Unpacked Size
288.06 kB
Size
102.01 kB
File Count
12
NPM Version
6.4.1
Node Version
10.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
21
This is a fork of [tiny-slider-react] (https://github.com/jechav/tiny-slider-react) Original plugin tiny-slider
UPDATED: Removed call to componentWillReceiveProps
prop | decription |
---|---|
settings | options slider |
onClick | callback to return slide clicked (slideClicked, info, event) |
startIndex | index of carousel initiation |
onIndexChanged | event bind |
onTransitionStart | event bind |
onTransitionEnd | event bind |
onTouchStart | event bind |
onTouchMove | event bind |
onTouchEnd | event bind |
1import TinySliderWrapper from "tiny-slider-react-wrapper"; 2 3const settings = { 4 lazyload: true, 5 nav: false, 6 mouseDrag: true 7}; 8 9<TinySliderWrapper settings={settings}> 10 {imgs.map((el, index) => ( 11 <div key={index} style={{ position: "relative" }}> 12 <img 13 className={`tns-lazy-img`} 14 src={loadingImage} 15 data-src={el} 16 alt="" 17 style={imgStyles} 18 /> 19 </div> 20 ))} 21</TinySliderWrapper>
How to use external buttons for prev & next
1const settings = { 2 lazyload: true, 3 nav: false, 4 mouseDrag: true, 5 controls: false // remove built-in nav buttons 6}
Add onClick for your buttons:
1<button type="button" onClick={() => this.onGoTo('prev')}>Previous</button> 2<button type="button" onClick={() => this.onGoTo('next')}>Next</button>
Add the handler on your component:
1onGoTo = dir => this.ts.slider.goTo(dir)
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/27 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
42 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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