---
title: Password reset
description: A secure reset action with request context.
---



**Email preview: Password reset.** Subject: "Reset your password". Preview text: "Reset your password within the next 30 minutes". The rendered email is at https://email-sdk.dev/docs/ui/account/password-reset.



## Installation

**CLI**

```bash
npx shadcn@latest add https://email-sdk.dev/r/password-reset.json
```

**Manual**

Copy this template into your app and customize its props, words, and links.

```tsx title="src/ui/email/password-reset.tsx"
import {
  EmailButton,
  EmailCard,
  EmailHeading,
  EmailText,
  ShadcnEmail,
} from "@opencoredev/email-sdk/react";

export function PasswordResetEmail({ resetUrl }: { resetUrl: string }) {
  return (
    <ShadcnEmail preview="Reset your password within the next 30 minutes">
      <EmailCard>
        <EmailHeading>Reset your password</EmailHeading>
        <EmailText>We received a request to reset the password for your Acme account.</EmailText>
        <EmailButton href={resetUrl}>Reset password</EmailButton>
        <EmailText muted style={{ fontSize: 13, marginTop: 20 }}>
          This link expires in 30 minutes. The request came from Safari on macOS.
        </EmailText>
      </EmailCard>
    </ShadcnEmail>
  );
}
```
