Gathering detailed insights and metrics for react-resizeable
Gathering detailed insights and metrics for react-resizeable
Gathering detailed insights and metrics for react-resizeable
Gathering detailed insights and metrics for react-resizeable
A react library that allows you to place custom resizeable grid components throughout your codebase.
npm install react-resizeable
Typescript
Module System
Min. Node Version
72.9
Supply Chain
98.5
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (96.83%)
HTML (3.17%)
Total Downloads
69,966
Last Day
54
Last Week
335
Last Month
1,755
Last Year
20,198
MIT License
14 Commits
1 Watchers
4 Branches
1 Contributors
Updated on Jun 10, 2020
Minified
Minified + Gzipped
Latest Version
0.2.6
Package Id
react-resizeable@0.2.6
Unpacked Size
82.47 kB
Size
20.67 kB
File Count
27
Cumulative downloads
Total Downloads
Last Day
-51.8%
54
Compared to previous day
Last Week
-30.8%
335
Compared to previous week
Last Month
2.6%
1,755
Compared to previous month
Last Year
-10.4%
20,198
Compared to previous year
1
Check out the demo.
A react library that allows you to place custom resizeable grid components throughout your codebase.
react-resizeable
exports two components, Resizeable
, the parent container and, Child
, the wrapper for any children. See demo for examples.
⏳ Saves you time by handling all the annoying event listeners for you.
⭐️ Flexibility to use proper semantic HTML (both components accept an as
prop!)
🐑 Simplicity -- no need to pass multiple breakpoints, if each child has a minWidth
we'll handle the wrap for you!
To use react-resizeable
, you must use styled-component > 4.1
as it is a peer dependency.
1$ yarn add react-resizeable 2// or 3$ npm i react-resizeable
NOTE: most arguments are provided defaults (see Full API below) with the only required one being width
on the <Child>
component, however it is strongly recommended to include minWidth
as well. (see demo for additional examples).
1import React from 'react'; 2import { Resizeable, Child } from 'react-resizeable'; 3 4const SomeComponent = () => ( 5 <Resizeable height="100vh" as="main"> 6 <Child resize={{ 7 width: '50%', 8 minWidth: '300px' 9 resizeable: true, 10 resizeDir: 'both' 11 }}> 12 <p> 13 Lorem ipsum dolor sit amet, consectetur adipiscing elit 14 </p> 15 </Child> 16 <Child resize={{ 17 as: 'article', 18 width: '50%', 19 minWidth: '300px', 20 height: '450px', 21 minHeight: '350px' 22 }}> 23 <p> 24 Lorem ipsum dolor sit amet, consectetur adipiscing elit 25 </p> 26 </Child> 27 </Resizeable> 28) 29 30export default SomeComponent;
<Parent />
1interface ResizeableProps { 2 flexDirection?: 'row' | 'column'; 3 height?: string; 4 as?: keyof JSX.IntrinsicElements; 5}
Defaults:
1 { 2 flexDirection: 'row', 3 height: '100%', 4 as: 'div', 5 }
<Child />
Note:
<Child />
includes a forwardRef
wrapper, so feel free to pass it a ref
if need be.1interface ChildProps { 2 resize: { 3 width: string; 4 resizeDir?: 'none' | 'both' | 'horizontal' | 'vertical' | 'initial' | 'inherit'; 5 resizeable?: boolean; 6 minWidth?: string; 7 height?: string; 8 minHeight?: string; 9 as?: keyof JSX.IntrinsicElements; 10 }; 11}
Defaults:
1 resize: { 2 width: 'n/a', 3 resizeable: false, 4 resizeDir: 'n/a', 5 as: 'div', 6 minWidth: 'min-content', 7 height: '100%', 8 minHeight: '100%', 9 }
MIT Licensed
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
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/14 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-12
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