Posts Learn Components Snippets Categories Tags About
/

Tailwind CSS Basic Tabs

<div class="flex flex-col md:flex-row flex-wrap bg-white border border-gray-200 w-full rounded mt-4">
  <span class="inline-block px-4 py-3 bg-gray-100 hover:bg-gray-100 cursor-pointer">
	Details
  </span>

  <span class="inline-block px-4 py-3 hover:bg-gray-100 cursor-pointer">
	Listing
  </span>

  <span class="inline-block px-4 py-3 hover:bg-gray-100 cursor-pointer">
	Ratings and Reviews
  </span>

  <span class="inline-block px-4 py-3 hover:bg-gray-100 cursor-pointer">
	About
  </span>
</div>

Tailwind CSS basic tabs component

[email protected] Published on Sep 07, 2021 17 views

How to install and add to your project?

Step 1: Include Tailwind CSS Style using CDN inside the head tag

<link href="https://unpkg.com/[email protected]^2/dist/tailwind.min.css" rel="stylesheet">

Step 2: Copy the component code above as you need it

Step 3: Preview the component in your browsr

You are done 🎉