zero-tooltip 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,13 +18,14 @@ yarn add zero-tooltip
18
18
  pnpm install zero-tooltip
19
19
  ```
20
20
 
21
- Register plugin in `main.ts`:
21
+ Register plugin and import styles in `main.ts`:
22
22
  ```ts
23
23
  import ZeroTooltip from 'zero-tooltip'
24
+ import 'zero-tooltip/style.css'
24
25
 
25
26
  const app = createApp(App)
26
27
 
27
- app.use(ZeroTooltip())
28
+ app.use(ZeroTooltip)
28
29
  ```
29
30
 
30
31
  ## Usage
@@ -51,9 +52,9 @@ Acceptable arguments are: `left` | `top` | `right` | `bottom`. This will overrid
51
52
  You can also define default position globally when registering plugin:
52
53
 
53
54
  ```ts
54
- app.use(ZeroTooltip({
55
+ app.use(ZeroTooltip, {
55
56
  defaultPosition: 'right'
56
- }))
57
+ })
57
58
  ```
58
59
 
59
60
  Tooltip component is fully customizable by giving config object as options when registering tooltip plugin:
@@ -77,7 +78,7 @@ const tooltipConfig: ZeroTooltipConfig = {
77
78
  zIndex: ...
78
79
  }
79
80
 
80
- app.use(ZeroTooltip(tooltipConfig))
81
+ app.use(ZeroTooltip, tooltipConfig)
81
82
  ```
82
83
 
83
84
  All above settings are optional.
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "dist",
19
19
  "src"
20
20
  ],
21
- "version": "1.1.0",
21
+ "version": "1.1.1",
22
22
  "type": "module",
23
23
  "scripts": {
24
24
  "dev": "vite",