add basic html form validatoin

This commit is contained in:
Balázs Orbán
2023-10-24 11:11:16 -07:00
parent 5fcc240bb8
commit 613d328f81

View File

@@ -40,6 +40,7 @@ export default async function LoginForm() {
type="email"
name="email"
placeholder="Enter your email address"
required
/>
<AtSymbolIcon className="pointer-events-none absolute left-3 top-1/2 h-[18px] w-[18px] -translate-y-1/2 text-gray-500 peer-focus:text-gray-900" />
</div>
@@ -58,6 +59,8 @@ export default async function LoginForm() {
type="password"
name="password"
placeholder="Enter password"
required
minLength={6}
/>
<KeyIcon className="pointer-events-none absolute left-3 top-1/2 h-[18px] w-[18px] -translate-y-1/2 text-gray-500 peer-focus:text-gray-900" />
</div>