+
+
handleChange("name", e.target.value)}
+ aria-invalid={!!errors.name}
+ aria-describedby={errors.name ? "name-error" : undefined}
+ className={cn(
+ "mt-1 w-full rounded-xl px-3 py-2 shadow-sm outline-none transition focus:ring-4",
+ inputBg,
+ inputBorder,
+ inputFocusBorder,
+ inputFocusRing,
+ placeholderColor,
+ darkMode ? "text-gray-100" : "text-slate-900"
+ )}
+ placeholder="Your Name"
+ required
+ />
+ {errors.name && (
+
{errors.name}
+ )}
+
+
+
handleChange("email", e.target.value)}
+ aria-invalid={!!errors.email}
+ aria-describedby={errors.email ? "email-error" : undefined}
+ className={cn(
+ "mt-1 w-full rounded-xl px-3 py-2 shadow-sm outline-none transition focus:ring-4",
+ inputBg,
+ inputBorder,
+ inputFocusBorder,
+ inputFocusRing,
+ placeholderColor,
+ darkMode ? "text-gray-100" : "text-slate-900"
+ )}
+ placeholder="jane@example.com"
+ required
+ />
+ {errors.email && (
+
{errors.email}
+ )}
+