Module Tippyjs
swissup/module-tippyjs
Integrates the Tippy.js library into Magento 2. Enables tooltips on elements with the `title` attribute using Tippy.js.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Share This Module's Status
README
Loaded from GitHubTippyjs
Tippyjs - is a Magento2 module that integrates Tippy library into Magento.
Installation
composer require swissup/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);
});
});
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.