cssoft/tippyjs

Highly customizable vanilla JS tooltip/popover library for Magento 2

Installs: 12

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

1.0.0 2025-01-09 06:09 UTC

This package is auto-updated.

Last update: 2025-01-09 06:21:21 UTC


README

Tippyjs - is a Magento2 module that integrates Tippy library into Magento.

Installation

composer require cssoft/module-tippyjs
bin/magento setup:upgrade

Usage

Basic example:

require(['tippy'], function (tippy) {
    // Tippify all titled elements
    tippy('[title]');
});

See all available options at official site: https://atomiks.github.io/tippyjs/v6/all-props/

Advanced example (works for dynamically added elements):

require([
    'Magento_Ui/js/lib/view/utils/async',
    'tippy'
], function ($, tippy) {
    $.async('[title]', function (el) {
        tippy(el);
    });
});