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
Copy file name to clipboardExpand all lines: docs/src/App.svelte
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,11 @@
4
4
importComponentAsContentfrom'./content.svelte';
5
5
6
6
let showTooltip =false;
7
+
let autoHideTooltip =true;
8
+
9
+
setTimeout(() => {
10
+
autoHideTooltip =false;
11
+
}, 5000);
7
12
</script>
8
13
9
14
<main>
@@ -81,7 +86,7 @@
81
86
<h2>Examples using component</h2>
82
87
83
88
<divclass="example">
84
-
This tooltip should appear on the <Tooltipcontent="hello world!"action="click"show={!showTooltip}><u>top</u></Tooltip> and use the content in the <code>title</code> attribute.
89
+
This tooltip should appear on the <Tooltipcontent="hello world!"action="click"show={autoHideTooltip}><u>top</u></Tooltip> and use the content in the <code>title</code> attribute. It will auto-hide in 5 seconds.
0 commit comments