# ✨ useResize

The useResize () function is used to return a copy of the filtered object using the given key value. This function provides the desired condition by specifying which properties are selected from the object.

# 🍁 Usage

The example usage of useResize function is shown below.

import { useResize } from 'vue-composable-utils';
const { screenWidth, screenHeight, ratiowh, ratiohw, rect } = useResize(resizeRef);

# 🚀 Features

useResize takes two parameters.

Parameter Description
screenWidth The object to be processed.
screenHeight Optional. The key value that should be selected.

# 💐 Example

You can see how it changes reactively using the example below.

{
  "screenWidth": 0,
  "screenHeight": 0,
  "ratiowh": 0,
  "ratiohw": 0
}