Sign In Dialog
revola/sign-inFreeComponent
A responsive sign in form dialog with email and password inputs - drawer on mobile, modal on desktop.
Install it
npx shadcn@latest add https://revola.sameerjs.com/r/sign-in.jsonSource
1import { useId } from "react";23import { Button } from "@/components/ui/button";4import { Checkbox } from "@/components/ui/checkbox";5import { Input } from "@/components/ui/input";6import { Label } from "@/components/ui/label";7import {8 ResponsiveDialog,9 ResponsiveDialogContent,10 ResponsiveDialogDescription,11 ResponsiveDialogHeader,12 ResponsiveDialogTitle,13 ResponsiveDialogTrigger,14} from "@/components/ui/revola";1516export default function SignInDialog() {17 const id = useId();18 return (19 <ResponsiveDialog>20 <ResponsiveDialogTrigger asChild>21 <Button variant="outline" className="h-12 rounded-full px-6 capitalize">22 Sign In23 </Button>24 </ResponsiveDialogTrigger>25 <ResponsiveDialogContent className="sm:max-w-sm">26 <div className="space-y-4 overflow-y-auto p-6">27 <div className="flex flex-col items-center gap-2">28 <div className="flex size-11 shrink-0 items-center justify-center rounded-full border" aria-hidden="true">29 <svg30 className="stroke-zinc-800 dark:stroke-zinc-100"31 xmlns="http://www.w3.org/2000/svg"32 width="20"33 height="20"34 viewBox="0 0 32 32"35 aria-hidden="true"36 >37 <circle cx="16" cy="16" r="12" fill="none" strokeWidth="8" />38 </svg>39 </div>40 <ResponsiveDialogHeader className="sm:text-center">41 <ResponsiveDialogTitle>Welcome back</ResponsiveDialogTitle>42 <ResponsiveDialogDescription>43 Enter your credentials to login to your account.44 </ResponsiveDialogDescription>45 </ResponsiveDialogHeader>46 </div>47 <form className="space-y-5">48 <div className="space-y-4">49 <div className="space-y-2">50 <Label htmlFor={`${id}-email`}>Email</Label>51 <Input52 required53 type="email"54 id={`${id}-email`}55 placeholder="hi@yourcompany.com"56 className="[&:-webkit-autofill]:shadow-[0_0_0_30px_theme(colors.input)_inset]"57 />58 </div>59 <div className="space-y-2">60 <Label htmlFor={`${id}-password`}>Password</Label>61 <Input62 required63 type="password"64 id={`${id}-password`}65// … truncated
What it pulls in
Other registry items
Files it writes
More from revola
All 24 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Alert Dialogalert-dialog | revola | Components | Free | no deps | |
| Alert Dialog with Iconalert-dialog-with-icon | revola | Components | Free | 1 dep | |
| Change Plan Dialogchange-plan | revola | Components | Free | 1 dep | |
| Checkout Dialogcheckout | revola | Components | Free | 2 deps | |
| Credit Card Dialogcredit-card | revola | Components | Free | 2 deps | |
| Custom Scrollbar Dialogcustom-scrollbar | revola | Components | Free | no deps | |
| Delete Project Dialogdelete-project | revola | Components | Free | 1 dep | |
| Edit Profile Dialogedit-profile | revola | Components | Free | 1 dep · 3 files |
