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

Creating isMobile / isTablet, etc #80

Open
demiro opened this issue Sep 8, 2022 · 0 comments
Open

Creating isMobile / isTablet, etc #80

demiro opened this issue Sep 8, 2022 · 0 comments

Comments

@demiro
Copy link

demiro commented Sep 8, 2022

How can I extend the global $mq object with reactive isMobile / isTablet / isWide, etc properties?

I want to be able to use it similar to $device.isMobile from Nuxt

<div v-if="$mq.isMobile"> ...

and not the long version like

<div v-if="$mq === mobile"> ...

Any idea on how could I extend it to be working like this?

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

1 participant