[Vuejs]-Vue3 bind props to slot

1👍

What you did would force you to reapply the props given to the AppTooltip to the v-btn again.

Although in vuetify 3 there is another way to not write this boilerplate.

<v-btn>
  The Btn's text
  <v-tooltip activator="parent">
    Tooltip Text
  </v-tooltip>
</v-btn>

The activator="parent" can be used for menus, dialogs and other components that have activator slot too.

Leave a comment