Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use in nuxt 3 app #24

Open
ShekhSaifuddin007 opened this issue Feb 19, 2023 · 2 comments
Open

How to use in nuxt 3 app #24

ShekhSaifuddin007 opened this issue Feb 19, 2023 · 2 comments

Comments

@ShekhSaifuddin007
Copy link

No description provided.

@hassanrazahasrat
Copy link

create a file click-away.client.ts in plugins folder with this content.

import ClickAway from 'vue3-click-away';

export default defineNuxtPlugin(({ vueApp }) => {
  vueApp.use(ClickAway);
});

Now you can use v-click-away directive in your vue files.

@dhaladitya108
Copy link

@hassanrazahasrat thanks man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants