Posts Learn Components Snippets Categories Tags Tools About
<div class="flex flex-col">
  <h2 class="text-2xl font-bold mb-4">
    Buttons with Shadows

  <div class="flex flex-wrap gap-4">
    <button class="p-4 rounded-lg bg-blue-400 hover:bg-blue-500 font-bold text-white shadow-lg shadow-blue-200 transition ease-in-out duration-200 translate-10">
      Primary Button

    <button class="p-4 rounded-lg bg-green-400 hover:bg-green-500 font-bold text-white shadow-lg shadow-green-200 transition ease-in-out duration-200 translate-10">
      Success Button

    <button class="p-4 rounded-lg bg-yellow-400 hover:bg-yellow-500 font-bold text-white shadow-lg shadow-yellow-200 transition ease-in-out duration-200 translate-10">
      Warning Button

    <button class="p-4 rounded-lg bg-red-400 hover:bg-red-500 font-bold text-white shadow-lg shadow-red-200 transition ease-in-out duration-200 translate-10">
      Alert Button

    <button class="p-4 rounded-lg bg-indigo-400 hover:bg-indigo-500 font-bold text-white shadow-lg shadow-indigo-200 transition ease-in-out duration-200 translate-10">
      Secondary Button

    <button class="p-4 rounded-lg bg-stone-400 hover:bg-stone-500 font-bold text-white shadow-lg shadow-stone-200 transition ease-in-out duration-200 translate-10">
      Default Button

Collection of Tailwind CSS Buttons with Shadows for primary, success, warning, alert, secondary and default buttons

[email protected] 1087 views

How to install and add to your project?

Step 1: Include Scripts and Styling CDN inside the head tag

<script src=""></script>
<link rel="stylesheet" href="">
<script defer src="[email protected]/dist/cdn.min.js"></script>

Step 2: Copy the Tailwind CSS Buttons with Shadows component code above as you need it

Step 3: Preview the component in your browser 🚀

Step 4: For production release make sure to use the official Tailwind CSS Installation

You are done 🎉

Credits or Attribution

If you enjoy using our components, please do give us (PostSrc) credit in your project footer section or about page. Copy the HTML below for attribution.

<a href="" target="_blank" rel="noopener" title="PostSrc Components - Collection of Tailwind CSS components for everyone to use"><img style="width: auto; height: 46px;" src="" alt="PostSrc logo"></a>

Other Tailwind CSS Buttons Components

More Components

Sponsors 👑

+ Add Yours