Skip to content

Commit 37430ea

Browse files
gabrieljablonskidanielbarion
authored andcommitted
dev demo
1 parent 9d79766 commit 37430ea

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/App.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ function WithProvider() {
2121
<p>
2222
<button
2323
ref={buttonRef1}
24+
data-tooltip-place="right"
2425
data-tooltip-content={`Hello World from a Tooltip ${clickCount}`}
2526
onClick={() => setClickCount((i) => i + 1)}
2627
>
27-
Hover or focus me
28+
Hover or focus me 4
2829
</button>
29-
<button ref={buttonRef2} data-tooltip-content="Hello World from a Tooltip 2">
30-
Hover or focus me 2
30+
<button
31+
ref={buttonRef2}
32+
data-tooltip-place="bottom"
33+
data-tooltip-content="Hello World from a Tooltip 5"
34+
>
35+
Hover or focus me 5
3136
</button>
3237
</p>
3338
<Tooltip />

0 commit comments

Comments
 (0)