Skip to content

x-resize

x-resize

Utility that effectively handles resize events with ease. With x-resize, you can effortlessly manage interactions triggered by resizing the window. This utility empowers you to define custom actions or styles when the element's size changes, providing a more responsive and adaptable user experience.

Simplify event handling and optimize your application's behavior with the flexibility of x-resize.

Example:

<div x-html x-resize={({ event }) => console.log(event)}>
  {/* <!-- Content goes here... --> */}
</div>