[Vuejs]-How to change margin based on display/breakpoint in Vuetify

3👍

class="mt-sm-5 mt-0"

you can read it like this: use mt-5 if screen is wider than sm breakpoint, else use mt-0

2👍

In addition of Romalex answer, here’s a full list of Breakpoint in Vuetify

I know it’s not the answer you want to, but I want to share another way to set the behaviour on screen using class conditional. Here’s an example:

:class="[$vuetify.breakpoint.smAndDown?'class-1':'class-2']"

Cheers~

Leave a comment