description: The Resize Observer component offers a thin, declarative interface to the ResizeObserver API.
layout: component
---
The resize observer will report changes to the dimensions of the elements it wraps through the `sl-resize` event. When emitted, a collection of [`ResizeObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry) objects will be attached to `event.detail` that contains the target element and information about its dimensions.
```html:preview
<divclass="resize-observer-overview">
<sl-resize-observer>
<div>Resize this box and watch the console 👉</div>