NJ
Next Js

Signup Page - Copy this React, Tailwind Component to your project

(<div className="relative"> <input type={showPassword ? "text" : "password"} id="password" name="password" value={formData.password} onChange={handleChange} placeholder="••••••••" className={`mt-1 block w-full px-3 py-2 bg-white border ${errors.password ? 'border-red-500' : 'border-gray-300'} rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500`} aria-invalid={errors.password ? "true" : "false"} aria-describedby="password-error" /> <button type="button" className="absolute inset-y-0 right-0 pr-3 flex items-center text-sm leading-5" onClick={() => setShowPassword(!showPassword)} > {showPassword ? <FaEyeSlash className="h-5 w-5 text-black" /> : <FaEye className="h-5 w-5 text-black" />} </button> </div>) correct this piece of code no bg of button and in same line as part of input box

Prompt
Component Preview

About

SignupPage - An attractive, professional layout centered for mobile and desktop, built with React and Tailwind. Responsive design for all. Copy code today!

Share

Last updated 1 month ago