---
title: "Forgot Password"
description: "A recovery request form that preserves account privacy."
---

Interactive preview: https://ui.coderocket.app/docs/vue/blocks/forgot-password

## Usage

Choose Vue in the Studio and export your saved library, or install this item through its connected CLI/MCP. [Vue setup and Nuxt integration](/docs/vue).

```vue
<script setup lang="ts">
import ForgotPasswordBlock from './components/blocks/forgot-password.vue'
</script>

<!-- Supply the required props and callbacks listed in Source and props. -->
```

## Design system

This Vue component consumes the same CodeRocket tokens as the React version. Import the compiled styles and wrap your app in ThemeScope. Tailwind is optional.

## Behavior and accessibility

Vue uses native events, v-model and slots. Reka UI handles keyboard and focus behavior in complex primitives. Connect actions to your own application and review labels, contrast and mobile behavior in context. Components are experimental during early access.

The full ZIP also includes `examples/block-showcase.vue`, with populated block props, illustrations and local sample callbacks to adapt to your application.

## Source and props

This is the exact Vue single-file component delivered by the export. Related helpers and dependencies are included automatically.

```vue
<script setup lang="ts">
import AuthFrame from "./auth-frame.vue";
import ActionForm from "./action-form.vue";
import type { FormAction } from "./common";
import Field from "../ui/field.vue";
import InputGroup from "../ui/input-group.vue";
import { ArrowLeft, ArrowRight, KeyRound, Mail } from "@lucide/vue";
defineProps<{ onSubmit: FormAction; loginHref: string }>();
</script>
<template>
  <AuthFrame
    title="Let’s get you back in."
    description="Enter your account’s email address. We’ll send you a link to choose a new password."
    eyebrow="Account recovery"
    ><template #icon><KeyRound :size="24" :stroke-width="1.75" /></template
    ><ActionForm
      :on-submit="onSubmit"
      submit-label="Send reset link"
      success-message="If this address has an account, a reset link is on its way."
      ><Field label="Email address"
        ><InputGroup
          name="email"
          type="email"
          autocomplete="email"
          required
          placeholder="you@company.com"
          ><template #leading
            ><Mail
              :size="16"
              aria-hidden="true" /></template></InputGroup></Field
      ><template #submit-icon
        ><ArrowRight :size="17" aria-hidden="true" /></template></ActionForm
    ><template #footer
      ><p class="cr-auth-footer">
        <a class="cr-auth-link" :href="loginHref"
          ><ArrowLeft :size="14" aria-hidden="true" /> Back to sign in</a
        >
      </p></template
    ></AuthFrame
  >
</template>
```
