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
{{ message }}
This repository was archived by the owner on Sep 28, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -250,7 +250,7 @@ What is
250
250
251
251
## Options
252
252
253
-
Pass any of the options listed below to `Vue.use(VueCustomTooltip, {...})` to customize the plugin for your project _(not available with [in-component installation](#in-component-install))_.
253
+
Pass any of the options listed below to `Vue.use(VueCustomTooltip, {...})` to customize the plugin for your project _(not available with [in-component installation](#in-component-install) - see the [CSS Variables section](#css-variables) below)_.
254
254
255
255
> **A note on options tied to CSS properties**
256
256
>
@@ -339,6 +339,20 @@ Vue.use(VueCustomTooltip, {
339
339
})
340
340
```
341
341
342
+
## CSS Variables
343
+
344
+
In addition to customizing styles via the [Plugin Options](#options), you can alternatively choose to customize styles via CSS variables as shown below:
345
+
346
+
```css
347
+
/* Default values are shown */
348
+
:root {
349
+
--vue-custom-tooltip-color: #fff;
350
+
--vue-custom-tooltip-background: #000;
351
+
--vue-custom-tooltip-border-radius: 100px;
352
+
--vue-custom-tooltip-font-weight: 400;
353
+
}
354
+
```
355
+
342
356
## Props
343
357
344
358
In addition to the [Plugin Options](#options) above, you may also pass props to the component itself to customize both the look and behavior of the tooltip element.
0 commit comments