Overview
Thev-tooltip directive provides a convenient way to add tooltips to any element without using the VTooltip component. It creates a tooltip that appears on hover.
Import
Registration
Global Registration
Local Registration
Syntax
Value Types
String
Boolean
Object Configuration
Arguments
Tooltip location/anchor position. Values:
topbottomleftrightstartendtop-start,top-endbottom-start,bottom-end- And more positioning options
Usage Examples
Basic Tooltip
Positioned Tooltips
Icon Tooltips
Conditional Tooltip
Dynamic Tooltip Text
Disabled State
Truncated Text Tooltip
Data Table Actions
Multiline Tooltip
Custom Configuration
Disabled Button with Tooltip
Form Field Hints
Card Actions
VTooltip Props Support
When using object configuration, you can pass any VTooltip component prop:location- Tooltip positionopenDelay- Delay before opening (ms)closeDelay- Delay before closing (ms)maxWidth- Maximum tooltip widthcontentClass- Custom CSS class- And all other VTooltip props
Notes
- Tooltip appears on hover by default
- Activator is set to ‘parent’ automatically
- Empty strings,
false, andnulldisable the tooltip undefinedis treated astrue(shows empty tooltip, not recommended)- Location argument is converted from kebab-case to space-separated (e.g.,
top-startbecomestop start) - Works with any element, not just Vuetify components
- Tooltip is automatically removed when element is unmounted