Reset Password
Get a locked-out user back into their account safely, proving ownership without leaking whether the account exists.
Reset your password
Enter your account email and we'll send you a link to choose a new password.
Remembered it? Back to sign in
Example result — your output may vary with your context and the prompt you pass.
# Reset Password: Email Link
## Context
Flexnative UI intent — a reference solution from the shadcn/ui registry (@flx). The intent frames the problem; the decision is one approach to it.
## Problem
Get a locked-out user back into their account safely, proving ownership without leaking whether the account exists.
## Decision
- Best for: The default for almost every product. Email a signed, expiring reset link so the inbox itself proves ownership and no secret is typed.
- Trade-off: Depends on email deliverability and inbox access; a slow or filtered email blocks recovery entirely.
## Registry Item
@flx/reset-password-1
## Stack
- UI: shadcn/ui
- Styling: Tailwind CSS
- shadcn components: Button, Card, Input, Label
- npm: lucide-react
## Registry Source
https://ui.flexnative.com/r/reset-password-1.json
## Preview
https://ui.flexnative.com/intents/reset-password#1
## Reference Implementation
```tsx
import { KeyRoundIcon } from 'lucide-react'
import { Button } from '@/components/ui/button'
import {
Card,
CardContent,
CardFooter,
CardHeader,
CardTitle,
} from '@/components/ui/card'
import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label'
export function ResetPassword1() {
return (
<Card size="sm">
<CardHeader>
<div className="bg-primary/10 mb-1 flex size-10 items-center justify-center rounded-full">
<KeyRoundIcon className="text-primary size-5" />
</div>
<CardTitle>Reset your password</CardTitle>
<p className="text-muted-foreground text-xs">
Enter your account email and we'll send you a link to choose a
new password.
</p>
</CardHeader>
<CardContent className="flex flex-col gap-1.5">
<Label htmlFor="rp-email" className="text-xs">
Email
</Label>
<Input
id="rp-email"
type="email"
placeholder="you@acme.com"
autoComplete="email"
/>
</CardContent>
<CardFooter className="flex-col items-stretch gap-5">
<Button className="w-full">Send reset link</Button>
<p className="text-muted-foreground text-center text-xs">
Remembered it?{' '}
<a href="#" className="text-foreground font-medium hover:underline">
Back to sign in
</a>
</p>
</CardFooter>
</Card>
)
}
```Paste into your AI tool and adapt it to your context.
Other ways
Reach for these when the context shifts. Each is copyable too.
Enter your code
We sent a 6-digit code to j•••@acme.com. Enter it below to continue.
Didn't get it? Resend code · expires in 5:00
OTP Code
Verify it's you
Answer your security questions to recover access without email.
Can't remember? Contact support to recover your account.
Security Questions