# ✨ useModal

The useModal () 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 useModal function is shown below.

import { useModal } from 'vue-composable-utils';
const { visible, setVisible, current, openModal, closeModal } = useModal();

# 🚀 Features

useModal takes two parameters.

Parameter Description
Object The object to be processed.
Keys Optional. The key value that should be selected.

# 💐 Example

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