You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`component`|`Component`| Required | The Vue component to render as the tooltip |
210
-
|`showDelay`|`number`|`0`| Delay in milliseconds before the tooltip appears on hover |
211
-
|`hideDelay`|`number`|`200`| Delay in milliseconds before the tooltip disappears when the cursor leaves |
212
-
|`defaultPlacement`|`Placement`|`'top'`| Default tooltip placement: `'top'`, `'bottom'`, `'left'`, `'right'`, etc. |
213
-
|`defaultTruncateDetection`|`'x' \| 'y' \| 'both' \| 'none'`|`'both'`| Direction(s) to check for text truncation (`'x'` for horizontal, `'y'` for vertical, `'both'`, or `'none'` to disable) |
214
-
|`handleDialogModals`|`boolean`|`false`| Whether to handle tooltips within HTML `<dialog>` elements with the `open` attribute (modal dialogs) |
215
-
|`placementAttribute`|`string`|`'data-vueltip-placement'`| HTML attribute name for tooltip placement overrides |
216
-
|`keyAttribute`|`string`|`'data-vueltip-key'`| HTML attribute name for tooltip identification |
217
-
|`truncateAttribute`|`string`|`'data-vueltip-truncate'`| HTML attribute name for truncate detection overrides |
218
-
219
-
### useVueltip Composable Options
220
-
221
-
The `useVueltip` composable accepts the following options:
|`placement`|`Placement`|`'top'`| Placement override for this element |
241
+
|`custom`|`object`| — | Arbitrary typed data accessible in the tooltip component |
242
+
243
+
**Placement via directive arg:**
244
+
245
+
Placement can also be set as a directive argument instead of inside the object:
237
246
238
-
```ts
239
-
v-tooltip="'Tooltip text'"
247
+
```
248
+
v-tooltip:right="'text'"
240
249
```
241
250
242
-
**Object with options:**
251
+
**Truncation detection modifiers:**
243
252
244
-
```ts
245
-
v-tooltip="{
246
-
text: 'Tooltip text',
247
-
placement: 'right'// Placement: 'top', 'bottom', 'left', 'right', etc.
248
-
}"
253
+
Control which axis is checked for text overflow. When the element is not truncated and the tooltip text matches the element content, the tooltip is suppressed.
0 commit comments