A basic component that can easily monitor the width and height of internal elements. Based on useResizeObserver, this component does not limit the number of internal elements, and can monitor changes in the size of multiple elements at the same time.
Examples
heightpxwidthpx
Basic
Basic
Properties
| Property | Description | Type | Default | Require |
|---|---|---|---|---|
| children | Children | ReactNode | - | true |
| onResizeObserver | Callback for size change | (state: { width:number, height: number }, target: Element) => void | - | false |