Home > Net >  How to change margin based on display/breakpoint in Vuetify
How to change margin based on display/breakpoint in Vuetify

Time:02-26

I know it is possible to set the margin on Vuetify based on the display/breakpoints.

How can I change the following class in a way that margin-top will be 0 when the breakpoint/display is "s" or "xs" :

<v-text-field  field> </v-text-field>

CodePudding user response:


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

CodePudding user response:

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:

:

Cheers~

  • Related