Created
August 7, 2020 11:19
-
-
Save thiagodomingues/8d806d9d70ffa1d1d6ca97b0354041d9 to your computer and use it in GitHub Desktop.
Responsividade no botão conforme o tamanho da tela. Vuejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<v-btn v-bind="size"><v-icon left v-bind="size">mdi-home</v-icon> Button</v-btn> | |
computed: { | |
size () { | |
const size = {xs:'x-small', sm:'small', lg:'large', xl:'x-large'} | |
[this.$vuetify.breakpoint.name]; | |
return size ? { [size]: true } : {} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment