JSFiddle - React, Tailwind, and code Playground
by Igor Cuckovic
HTML
<!-- Container for demo purpose -->
<script src="https://cdn.tailwindcss.com"></script>
<div>
<!-- Section: Design Block -->
<section class="mb-40">
<nav
class="navbar navbar-expand-lg shadow-md py-2 bg-white relative flex items-center w-full justify-between"
>
<div class="px-6 w-full flex flex-wrap items-center justify-between">
<div class="flex items-center">
<button
class="navbar-toggler border-0 py-3 lg:hidden leading-none text-xl bg-transparent text-gray-600 hover:text-gray-700 focus:text-gray-700 transition-shadow duration-150 ease-in-out mr-2"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContentY"
aria-controls="navbarSupportedContentY"
aria-expanded="false"
aria-label="Toggle navigation"
>
<svg
aria-hidden="true"
focusable="false"
data-prefix="fas"
class="w-5"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
>
<path
fill="currentColor"
d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"
></path>
</svg>
</button>
<a class="navbar-brand text-blue-600" href="#!">
<svg
class="w-5 h-5 ml-2 lg:ml-0 mr-2"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
>
<path
fill="currentColor"
d="M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267...