<button data-tippy-content="Vous pouvez saisir votre message ci-dessous, un conseiller prime Eco Energie est prêt à y répondre !">Passez votre souris ici</button>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script>
tippy('[data-tippy-content]', {
duration: 100,
delay: [0, 250],
allowHTML: true,
theme: 'grey',
placement: 'right',
arrow: true
});
</script>
<button data-tippy-content="{{tooltip}}">Passez votre souris ici</button>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script>
tippy('[data-tippy-content]', {
duration: 100,
delay: [0, 250],
allowHTML: true,
theme: 'grey',
placement: 'right',
arrow:true
});
</script>
{
"tooltip": "Vous pouvez saisir votre message ci-dessous, un conseiller prime Eco Energie est prêt à y répondre !"
}
➡️ View the latest demo & docs here
# npm
npm i tippy.js
# Yarn
yarn add tippy.jsImport the tippy constructor and the core CSS:
import tippy from 'tippy.js';
import 'tippy.js/dist/tippy.css';<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>The core CSS comes bundled with the default unpkg import.
For detailed usage information, visit the docs.
React: @tippyjs/react
MIT