MUI Extended UI Components

Resizable Box


Extends Box with onResize callback

Implemented using ResizeObserver webapi

Usage

import { ResizableBox } from "mui-extended"; const resizableBox = ( <ResizableBox onResize={(width: number, height: number) => {}}> {children} </ResizableBox> );

Props

  • props are same as Box
  • onResize - a function callback to be fired when Box is resized
  • boxRef - a ref to Box's div
Demo

100 X 50

Does this page need improvements?
Edit This Page in GitHub
Did this page help you?
Provide feedback in the GitHub Discussion Page
Need More help?

Write an email to opensource@sodaru.com