Description
re-resizable, which is listed here as react-resizable-box, is a resizable component for React. You wrap content in it and the user can drag its edges or corners to change its width and height. The component accepts a default size, or a controlled size if you manage the state yourself, and minimum and maximum sizes that can be set in pixels, percentages or viewport units. Width and height can be given as numbers, pixels or percentages, and a height of auto follows the parent. You can set class names and styles, and an instance method lets you update the size from code. The project provides a live demo, a Storybook and CodeSandbox examples in TypeScript and with hooks. It is installed from npm and is available under the MIT licence. The documentation lists the props and the instance API, and the README includes a test section and a list of related projects. The source code is on GitHub under bokuweb.…
Highlights
- Drag-to-resize React component
- Controlled and uncontrolled sizes
- Minimum and maximum size limits
- Viewport and percentage units
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate react-resizable-box.
People also visit
react-resize-aware
A React hook that makes it possible to listen to element resize events
react-resizable-box FAQ
What is this component?
A React component whose edges and corners can be dragged to resize it.
How do I control the size?
Use defaultSize for a starting size, or size if you manage the state yourself.
Can I set limits?
Yes. minWidth and similar props accept pixels, percentages, or viewport units.
What license is it under?
MIT, as the project's README and repository state.
What are the best react-resizable-box alternatives?
Popular alternatives to react-resizable-box include react-resizable-and-movable, react-resizable-layout and react-resize-aware. See all react-resizable-box alternatives

















