Skip to content

Instantly share code, notes, and snippets.

@eyalcohen4
Created November 24, 2023 17:23
Show Gist options
  • Save eyalcohen4/761ee7c548a65b166aafe54f6d37d506 to your computer and use it in GitHub Desktop.
Save eyalcohen4/761ee7c548a65b166aafe54f6d37d506 to your computer and use it in GitHub Desktop.
Sign In Button
"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="name@example.com"
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