The Resize Observer API provides a way to observe changes to the size of elements, enabling responsive layouts without relying solely on media queries.
Drag the bottom-right corner to resize this element:
This component changes based on its container size (not viewport):
This box displays its current aspect ratio:
This chart redraws when its container resizes: