Home > Software engineering >  clickable button over image/icon in vuetify
clickable button over image/icon in vuetify

Time:05-27

how could I made button with this UI

<v-btn><v-img>...<v-img></v-btn>

CodePudding user response:

You may look into HTML Links

HTML links are hyperlinks. You can click on a link and jump to another document. When you move the mouse over a link, the mouse arrow will turn into a little hand.

Therefore, your code should be

<a href="#"><v-img>...</v-img></a>

CodePudding user response:

go through this let me know if still, you face any problems.

Here is the code :-

        <v-btn icon @click="btnClicked">
          <v-img
            src="https://picsum.photos/510/300?random"
            aspect-ratio="1.7"
          ></v-img>
          </v-btn>
  • Related