diff --git a/docs/content/en/flavor/component.md b/docs/content/en/flavor/component.md index e278834..5fcc86a 100644 --- a/docs/content/en/flavor/component.md +++ b/docs/content/en/flavor/component.md @@ -70,6 +70,20 @@ Mount tippy on the child node instead of default tag ``` + +### Example 3 +Tippy as a child using `to="parent"`. \ +Works like `:tag="null"`, but applies the tooltip to the parent element instead of the child. + +```html + +``` + ## Singleton ### Example 1 diff --git a/playground/pages/Index.vue b/playground/pages/Index.vue index be5e8fb..b53672d 100644 --- a/playground/pages/Index.vue +++ b/playground/pages/Index.vue @@ -88,6 +88,33 @@ +
+ Tippy as a child component with prop content: + + +
+ +
+ Tippy as a child component with #content template: + + +
+ +
+ Tippy as a child component with direct content: + + +
+
useTippy + callbacks(console.log):