Tippy Tooltip

There are few options on how to include/import Tippy Tooltip into your project. Make sure you have installed Tippy package in order to use this package.

Install from Yarn

Install the Tippy Tooltip Js library from command prompt from the root directory of the project:

yarn add tippy.j --save

How to import tippy Tooltip package?

import tippy, { followCursor } from 'tippy.js';
import 'tippy.js/dist/tippy.css';
import 'tippy.js/animations/scale.css';
import 'tippy.js/animations/scale-subtle.css';
import 'tippy.js/animations/scale-extreme.css';

To apply tippy Tooltip add the below code in the init.js file.

let tooltipElement: HTMLAnchorElement;
onMount(() => {
    tippy(tooltipElement, {
        content,
        placement: position,
        trigger,
        ...additionalFunc,
        plugins: [followCursor]
    });
});

<a href="#!" bind:this={tooltipElement} class="transition duration-300 ease-linear hover:z-10">
    <button class={`btn ` + btnStyle}>{btnValue} </button>
</a>
Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Hire Us
Domiex Admin & Dashboards
230+

Total Pages

5+

Layouts

11+

Application

We provide quick support withing one business day to all of our customers.

© Domiex Created & Crafted by SRBThemes.