Advertisement
sentgine

Form Modal Tailwind

Feb 12th, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.43 KB | Source Code | 0 0
  1. <div className="bg-gray-500 bg-opacity-20 h-full w-full fixed top-0 left-0 text-gray-600">
  2.             <div className="flex justify-center items-center h-full">
  3.                 <div className="bg-white w-[800px] mx-auto rounded-lg shadow-lg p-6">
  4.                     <div className="flex justify-between">
  5.                         <h1 className="text-2xl font-bold mb-4">
  6.                             Create User
  7.                         </h1>
  8.                         {/* close button */}
  9.                         <button>
  10.                             <svg
  11.                                xmlns="http://www.w3.org/2000/svg"
  12.                                className="h-6 w-6"
  13.                                fill="none"
  14.                                viewBox="0 0 24 24"
  15.                                stroke="currentColor"
  16.                            >
  17.                                 <path
  18.                                    strokeLinecap="round"
  19.                                    strokeLinejoin="round"
  20.                                    strokeWidth={2}
  21.                                    d="M6 18L18 6M6 6l12 12"
  22.                                />
  23.                             </svg>
  24.                         </button>
  25.                     </div>
  26.                     <form>
  27.                         <div className="flex flex-col mb-4">
  28.                             <label
  29.                                className="text-gray-700 font-medium mb-2"
  30.                                htmlFor="email"
  31.                            >
  32.                                 Email
  33.                             </label>
  34.                             <input
  35.                                className="bg-white rounded-lg p-2 border-2 border-gray-300"
  36.                                type="email"
  37.                                id="email"
  38.                                name="email"
  39.                                value=""
  40.                            />
  41.                         </div>
  42.                         <div className="flex flex-col mb-4">
  43.                             <label
  44.                                className="text-gray-700 font-medium mb-2"
  45.                                htmlFor="password"
  46.                            >
  47.                                 Password
  48.                             </label>
  49.                             <input
  50.                                className="bg-white rounded-lg p-2 border-2 border-gray-300"
  51.                                type="password"
  52.                                id="password"
  53.                                name="password"
  54.                                value=""
  55.                            />
  56.                         </div>
  57.                         <div className="flex flex-col mb-4">
  58.                             <label
  59.                                className="text-gray-700 font-medium mb-2"
  60.                                htmlFor="first-name"
  61.                            >
  62.                                 First Name
  63.                             </label>
  64.                             <input
  65.                                className="bg-white rounded-lg p-2 border-2 border-gray-300"
  66.                                type="text"
  67.                                id="first-name"
  68.                                name="first_name"
  69.                                value=""
  70.                            />
  71.                         </div>
  72.                         <div className="flex flex-col mb-4">
  73.                             <label
  74.                                className="text-gray-700 font-medium mb-2"
  75.                                htmlFor="last-name"
  76.                            >
  77.                                 Last Name
  78.                             </label>
  79.                             <input
  80.                                className="bg-white rounded-lg p-2 border-2 border-gray-300"
  81.                                type="text"
  82.                                id="last-name"
  83.                                name="last_name"
  84.                                value=""
  85.                            />
  86.                         </div>
  87.  
  88.                        
  89.                             <button className="bg-blue-500 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg">
  90.                                 Create user
  91.                             </button>                        
  92.                          
  93.                     </form>
  94.                 </div>
  95.             </div>
  96.         </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement