Tippy Js Minimal
Web2tailwind.com

Output

Code

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
    <script src="https://unpkg.com/[email protected]/dist/tippy-bundle.umd.js"></script>
    <link href="https://unpkg.com/[email protected]^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>

<body style="font-family:Roboto">
    <div class="flex justify-center items-center h-screen md:-mx-4">
      <button data-placement="left" data-template='one'>Text</button>
      <div style="display: none;">
        <div id="one">
          <div class="bg-white shadow-l">
          <div class="px-3 py-2 font-bold text-gray-700 bg-gray-100">Popover title</div>
          <div class="px-3 py-3 text-gray-600">And here's some amazing content. It's very engaging. Right?</div>
        </div>
     </div>
    </div>
<script>
	tippy('button', {
      content:document.getElementById('one').innerHTML,
      allowHTML: true,
    });
</script>
</body>

</html>
© 2019 - 2020 Web2tailwind.com