kitzo 2.1.21 → 2.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -2
- package/dist/react/types/tooltip.d.ts +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ npm i kitzo
|
|
|
26
26
|
or
|
|
27
27
|
|
|
28
28
|
```javascript
|
|
29
|
-
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.1.
|
|
29
|
+
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.1.23/dist/kitzo.umd.min.js"></script>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
> Vanilla: Attach this script tag in the html head tag and you are good to go.
|
|
@@ -248,7 +248,22 @@ function App() {
|
|
|
248
248
|
<h1>Tooltip api</h1>
|
|
249
249
|
|
|
250
250
|
<div>
|
|
251
|
-
<Tooltip
|
|
251
|
+
<Tooltip
|
|
252
|
+
content="Tooltip"
|
|
253
|
+
tooltipOptions={{
|
|
254
|
+
offset: 10,
|
|
255
|
+
smartHover: true,
|
|
256
|
+
}}
|
|
257
|
+
animate={{
|
|
258
|
+
duration: 120,
|
|
259
|
+
startDelay: 400,
|
|
260
|
+
endDelay: 50,
|
|
261
|
+
}}
|
|
262
|
+
style={{
|
|
263
|
+
'--arrow-size': 6,
|
|
264
|
+
'--arrow-color': 'red'
|
|
265
|
+
}}
|
|
266
|
+
>
|
|
252
267
|
<button>Hover me</button>
|
|
253
268
|
</Tooltip>
|
|
254
269
|
</div>
|