-
Notifications
You must be signed in to change notification settings - Fork 189
/
Copy pathform.tsx
48 lines (48 loc) · 1.27 KB
/
form.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export function Form({
action,
children,
}: {
action: any;
children: React.ReactNode;
}) {
return (
<form
action={action}
className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 sm:px-16"
>
<div>
<label
htmlFor="email"
className="block text-xs text-gray-600 uppercase"
>
Email Address
</label>
<input
id="email"
name="email"
type="email"
placeholder="user@acme.com"
autoComplete="email"
required
className="mt-1 block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black sm:text-sm"
/>
</div>
<div>
<label
htmlFor="password"
className="block text-xs text-gray-600 uppercase"
>
Password
</label>
<input
id="password"
name="password"
type="password"
required
className="mt-1 block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black sm:text-sm"
/>
</div>
{children}
</form>
);
}