Gathering detailed insights and metrics for react-swipeable-clickeable-bottom-sheet
Gathering detailed insights and metrics for react-swipeable-clickeable-bottom-sheet
Gathering detailed insights and metrics for react-swipeable-clickeable-bottom-sheet
Gathering detailed insights and metrics for react-swipeable-clickeable-bottom-sheet
npm install react-swipeable-clickeable-bottom-sheet
Typescript
Module System
Node Version
NPM Version
58.7
Supply Chain
87.3
Quality
73.6
Maintenance
50
Vulnerability
99.6
License
JavaScript (84.75%)
HTML (12.94%)
Less (2.3%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
14,098
Last Day
15
Last Week
63
Last Month
227
Last Year
1,891
MIT License
132 Stars
28 Commits
36 Forks
2 Watchers
11 Branches
1 Contributors
Updated on Dec 06, 2024
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
react-swipeable-clickeable-bottom-sheet@1.1.1
Unpacked Size
1.37 MB
Size
0.97 MB
File Count
28
NPM Version
4.2.0
Node Version
7.10.0
Cumulative downloads
Total Downloads
Last Day
150%
15
Compared to previous day
Last Week
57.5%
63
Compared to previous week
Last Month
20.1%
227
Compared to previous month
Last Year
-24.9%
1,891
Compared to previous year
2
1
A swipeable material's bottom sheet implementation, that uses react-swipeable-views. This can be used to reproduce Material Design's Bottom Sheet guidelines
npm i -S react-swipeable-bottom-sheet
import SwipeableBottomSheet from 'react-swipeable-bottom-sheet';
<SwipeableBottomSheet overflowHeight={64}>
<div style={{ height: '240px' }}>
Here goes the content of your bottom sheet
</div>
</SwipeableBottomSheet>
The bottom sheet's height (when open) scales automatically with its content. If it exceeds the window height, content become scrollable.
Name | Type | Default | Description |
---|---|---|---|
overflowHeight | number | 0 | The height (in px) of the sheet when closed. |
open | bool | Use this property to enable controlled mode. If true , it will open the sheet. | |
defaultOpen | bool | false | If true , the sheet is open at component mount. |
onChange | function(isOpen) | The callback that fires after sheet opens or closes. | |
onTransitionEnd | function() | The callback that fires after opening or closing animation. | |
fullScreen | bool | false | If true , the sheet takes the full height of the window when open. |
marginTop | number | 0 | The top margin applied to the top of the sheet when open. Use this prop to prevent navbar overflow. |
shadowTip | bool | true | If true , a box shadow is displayed at sheet bottom when closed. This is used to show that content is hidden below. |
topShadow | bool | true | If true , a box shadow is displayed at sheet top border. |
overlay | bool | true | If true , an overlay is displayed behind sheet when open. A click on the overlay closes the sheet if controlled mode is disabled. |
overlayClicked | func | () => {} | If controlled mode is enabled execute a callback when overlay is clicked. |
scrollTopAtClose | bool | true | If true , the content is scrolled to the top when sheet closes. |
swipeableViewsProps | object | {} | Props passed to SwipeableViews component (see documentation). |
style | object | {} | Style applied on the root (non-swiped) component. |
bodyStyle | object | {} | Style applied on the body of the bottom sheet. |
overlayStyle | object | {} | Style applied on the overlay. |
src
, lib
and the build process)NOTE: The source code for the component is in src
. A transpiled CommonJS version (generated with Babel) is available in lib
for use with node.js, browserify and webpack. A UMD bundle is also built to dist
, which can be included without the need for any build system.
To build the examples locally, run:
npm install
npm start
Then open localhost:8000
in a browser.
To build, watch and serve the examples (which will also watch the component source), run npm start
. If you just want to watch changes to src
and rebuild lib
, run npm run watch
(this is useful if you are working with npm link
).
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
branch protection not enabled on development/release branches
Details
Reason
66 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
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