v-tooltip
component is useful for conveying information when a user hovers over an element. You can also programmatically control the display of tooltips through a v-model
. When activated, tooltips display a text label identifying an element, such as a description of its function. See documentation. <div class="text-center">
<v-tooltip left>
<template v-slot:activator="{ on }">
<v-btn color="primary" dark v-on="on">Left</v-btn>
</template>
<span>Left tooltip</span>
</v-tooltip>
<v-tooltip top>
<template v-slot:activator="{ on }">
<v-btn color="primary" dark v-on="on">Top</v-btn>
</template>
<span>Top tooltip</span>
</v-tooltip>
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn color="primary" dark v-on="on">Bottom</v-btn>
</template>
<span>Bottom tooltip</span>
</v-tooltip>
<v-tooltip right>
<template v-slot:activator="{ on }">
<v-btn color="primary" dark v-on="on">Right</v-btn>
</template>
<span>Right tooltip</span>
</v-tooltip>
</div>
A tooltip can be aligned to any of the four sides of the activator element
Tooltip visibility can be programmatically changed using v-model
.