Skip to content

vClickOutside

vClickOutside is a Vue 3 directive to trigger a function when the user clicks outside an element

Basic usage

Click outside me

Global install

main.ts

typescript
import { createApp } from 'vue'
import { vClickOutsideInstall } from 'maz-ui'

const app = createApp(App)

app.use(vClickOutsideInstall)

app.mount('#app')