Vue ToolTip

npm version License

Getting started

  1. Install the component:
npm i vue-tooltip-xd
  1. 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");
  1. Add the Component in yout HTML

Screenshot

<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

  1. 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 .