Posts Learn Components Snippets Categories Tags Tools About
<div class="container mx-auto p-4 bg-white">
  <div class="w-full md:w-1/2 lg:w-1/3 mx-auto my-12">
    <h1 class="text-lg font-bold">Login</h1>
    <form class="flex flex-col mt-4">
          class="px-4 py-3 w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0 text-sm"
          placeholder="Email address"
          class="px-4 py-3 mt-4 w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0 text-sm"
          class="mt-4 px-4 py-3  leading-6 text-base rounded-md border border-transparent text-white focus:outline-none bg-blue-500 text-blue-100 hover:text-white focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 cursor-pointer inline-flex items-center w-full justify-center items-center font-medium focus:outline-none"
      <div class="flex flex-col items-center mt-5">
        <p class="mt-1 text-xs font-light text-gray-500">
          New to Here?<a class="ml-1 font-medium text-blue-400">Sign up now</a>

Tailwind CSS basic login form with email, password and button component

[email protected] 2092 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 Basic Login Form 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>

Sponsors 👑

+ Add Yours