Email entry that sends a one-time password reset link.
Install with the CLI, or add the packages and paste the source below.
Add Forgot Password to your app with its source-owned dependencies.
npx cooud-ui add forgot-password
Install the Cooud UI packages, then paste the block below.
Copy the source for Request link. Every class is a semantic token, so it re-themes with your app.
import {Button,Card,CardContent,CardFooter,CardHeader,CardTitle,Input,Label,} from "@cooud-ui/ui";import { ArrowLeft, KeyRound } from "lucide-react";export function ForgotPasswordBlock() {return (<div className="flex w-full items-center justify-center py-4"><Card className="w-full max-w-sm gap-6 shadow-lg"><CardHeader className="flex flex-col items-center gap-3 text-center"><span className="inline-flex size-11 items-center justify-center rounded-xl bg-gradient-primary text-primary-foreground shadow-glow"><KeyRound className="size-5" aria-hidden="true" /></span><div className="flex flex-col gap-1"><CardTitle className="font-display text-xl">Reset your password</CardTitle><p className="text-sm text-fg-secondary">Enter your email and we'll send you a reset link.</p></div></CardHeader><CardContent className="flex flex-col gap-4"><div className="flex flex-col gap-2"><Label htmlFor="forgot-email">Email</Label><Input id="forgot-email" type="email" placeholder="you@company.com" autoComplete="email" /></div><Button variant="gradient" size="lg" className="w-full">Send reset link</Button></CardContent><CardFooter className="justify-center"><ahref="#signin"className="inline-flex items-center justify-center gap-1.5 text-sm font-medium text-fg-secondary transition-colors hover:text-fg"><ArrowLeft className="size-4" aria-hidden="true" />Back to sign in</a></CardFooter></Card></div>);}