vue-tooltip-xd
v1.1.1
Published
<p align="center"> <h1>Vue ToolTip</h1> </p>
Downloads
4
Maintainers
Readme
Getting started
- Install the component:
npm i vue-tooltip-xd
- Add the plugin into your app:
import { createApp } from "vue";
import App from "./App.vue";
import vueToolTip from "vue-tooltip-xd";
import "vue-tooltip-xd/dist/style.css";
const app = createApp(App);
app.use(vueToolTip);
app.mount("#app");
- Add the Component in yout HTML
<vue-tooltip
placement="bottom"
content="The ToolTip Text">
<button>Push Me</button>
</vue-tooltip>
The available placement are:
- top
- bottom
- left
- right
the default value is bottom
- Style variables
/* colors var */
--clr-vue-tooltip-bg /*background-color for the ToolTip */
--clr-vue-tooltip-text /*color for the ToolTip */
/* font var*/
--font-vue-tooltip-family /*font-family for the ToolTip */
--font-vue-tooltip-size /*font-size for the ToolTip */
/* time to display the tooltip */
--time-vue-tooltip
Follow the Project at GitHub https://github.com/christoph-xd/vue-tooltip-xd.git .