Created
November 24, 2023 17:23
-
-
Save eyalcohen4/761ee7c548a65b166aafe54f6d37d506 to your computer and use it in GitHub Desktop.
Sign In Button
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client" | |
import { Button } from "./ui/button" | |
import { | |
Dialog, | |
DialogContent, | |
DialogDescription, | |
DialogHeader, | |
DialogTitle, | |
DialogTrigger, | |
} from "./ui/dialog" | |
import { Input } from "./ui/input" | |
import { Label } from "./ui/label" | |
export const SignIn = () => { | |
return ( | |
<Dialog> | |
<DialogTrigger> | |
<Button className="w-24">Sign In</Button> | |
</DialogTrigger> | |
<DialogContent> | |
<DialogHeader> | |
<DialogTitle>Sign in to your account</DialogTitle> | |
<DialogDescription> | |
<p className="text-sm text-muted-foreground"> | |
Enter your details below. | |
</p> | |
</DialogDescription> | |
</DialogHeader> | |
<form className="grid gap-8"> | |
<div className="grid gap-4"> | |
<div className="grid gap-2"> | |
<Label htmlFor="email">Email</Label> | |
<Input | |
id="email" | |
placeholder="[email protected]" | |
type="email" | |
autoCapitalize="none" | |
autoComplete="none" | |
autoCorrect="off" | |
/> | |
</div> | |
<div className="grid gap-2"> | |
<Label htmlFor="email">Password</Label> | |
<Input | |
id="email" | |
type="password" | |
autoCapitalize="none" | |
autoComplete="none" | |
autoCorrect="off" | |
/> | |
</div> | |
</div> | |
<Button>Sign In with Email</Button> | |
</form> | |
</DialogContent> | |
</Dialog> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment