Gathering detailed insights and metrics for react-modern-drawer
Gathering detailed insights and metrics for react-modern-drawer
Gathering detailed insights and metrics for react-modern-drawer
Gathering detailed insights and metrics for react-modern-drawer
@jamsr-ui/drawer
A modern and beautiful Next.js UI components library.
@cisseui/react-components
Modern React UI components including Table, Modal, and Drawer
expo-drawer
The Animated Drawer Menu is a versatile navigation component designed to enhance user interaction with sleek and dynamic animations. It features four built-in animations, including sliding, fading, scaling, and bouncing effects, providing a modern and eng
react-smooth-sheet
A customizable bottom sheet component for React applications.
npm install react-modern-drawer
Typescript
Module System
Node Version
NPM Version
96.7
Supply Chain
99.5
Quality
76.7
Maintenance
100
Vulnerability
100
License
TypeScript (72%)
HTML (15.3%)
CSS (9.45%)
JavaScript (3.25%)
Total Downloads
4,099,310
Last Day
1,379
Last Week
32,581
Last Month
124,854
Last Year
1,514,228
MIT License
227 Stars
54 Commits
25 Forks
1 Watchers
6 Branches
5 Contributors
Updated on Jun 24, 2025
Minified
Minified + Gzipped
Latest Version
1.4.0
Package Id
react-modern-drawer@1.4.0
Unpacked Size
38.11 kB
Size
7.50 kB
File Count
9
NPM Version
10.7.0
Node Version
20.15.1
Published on
Aug 12, 2024
Cumulative downloads
Total Downloads
Last Day
16.7%
1,379
Compared to previous day
Last Week
6.7%
32,581
Compared to previous week
Last Month
0.7%
124,854
Compared to previous month
Last Year
-17.7%
1,514,228
Compared to previous year
1
27
creating drawers made easy!
![]() IE / Edge | ![]() Firefox | ![]() Chrome | ![]() Safari | ![]() iOS Safari | ![]() Samsung | ![]() Opera |
---|---|---|---|---|---|---|
All | All | All | All | All | All | All |
1npm install --save react-modern-drawer
or if you are using yarn :
1yarn add react-modern-drawer
1import React from 'react' 2 3// import component 👇 4import Drawer from 'react-modern-drawer' 5 6//import styles 👇 7import 'react-modern-drawer/dist/index.css' 8 9const App = () => { 10 const [isOpen, setIsOpen] = React.useState(false) 11 const toggleDrawer = () => { 12 setIsOpen((prevState) => !prevState) 13 } 14 15 return ( 16 <> 17 <button onClick={toggleDrawer}>Show</button> 18 <Drawer 19 open={isOpen} 20 onClose={toggleDrawer} 21 direction='right' 22 className='bla bla bla' 23 > 24 <div>Hello World</div> 25 </Drawer> 26 </> 27 ) 28} 29 30export default App
api | type | required | default | value | desciption |
---|---|---|---|---|---|
direction | string | yes | "right" | "right" , "left" , "top","bottom" | Selecting the direction that drawer opens |
open | boolean | yes | false | true , false | Select when to show drawer |
onClose | function | no | ( )=>{ } | any executable function | This function is called when clicking on backdrop layer usually used for closing the drawer |
size | number or string | no | 250 | integer or '{integer}px' or '{integer}vw' | Determines the size of drawer |
style | React.CSSProperties | no | null | Normal stylings | Can be used for inline styles |
duration | number | no | 300 | Any positive Integer | Determines the duration of opening the drawer |
overlayOpacity | number | no | 0.4 | Number between 0 and 1 | Determines the opacity of overlay |
overlayColor | string | no | "#000" | Any color code | Determines the color of overlay |
enableOverlay | boolean | no | true | true , false | Determines whether to show the overlay |
zIndex | number | no | 100 | Any positive Integer | Determines the zIndex of drawer |
children | React.ReactNode | no | null | Any ReactNode | This is the same as props.children |
className | string | no | undefined | - | normal regular classNames and stuff |
overlayClassName | string | no | undefined | - | normal regular classNames and stuff |
customIdSuffix | string | no | A random string based on Math.random() | - | Used for making different ids for drawers, can be customized for special cases. |
lockBackgroundScroll | boolean | no | false | - | Locks the body scroll when drawer is open. |
If you like this package please consider giving it a star.
clone the project and run yarn install
then run yarn start
to run the main project.
then cd example
and run yarn start
to start the development example in order to test the component.
any PRs are welcome!
MIT © Farzin-Firoozi
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/18 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
59 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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