---
title: "Reset Password"
description: "A password reset form with matching confirmation."
---

Interactive preview: https://ui.coderocket.app/docs/vue/blocks/reset-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 ResetPasswordBlock from './components/blocks/reset-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 PasswordInput from "./password-input.vue";
import type { FormAction } from "./common";
import Field from "../ui/field.vue";
import { ArrowRight, ShieldCheck } from "@lucide/vue";
defineProps<{ onSubmit: FormAction }>();
function validate(data: FormData) {
  return data.get("password") !== data.get("confirmation")
    ? "Passwords do not match. Enter the same password in both fields."
    : undefined;
}
</script>
<template>
  <AuthFrame
    title="A fresh start."
    description="Choose a new password to get back to your workspace."
    eyebrow="Reset password"
    ><template #icon><ShieldCheck :size="24" :stroke-width="1.75" /></template
    ><ActionForm
      :on-submit="onSubmit"
      :validate="validate"
      submit-label="Update password"
      success-message="Your password has been updated."
      ><Field label="New password" description="Use at least 12 characters."
        ><PasswordInput
          name="password"
          auto-complete="new-password"
          :min-length="12"
          placeholder="Create a new password" /></Field
      ><Field label="Confirm password"
        ><PasswordInput
          name="confirmation"
          auto-complete="new-password"
          :min-length="12"
          placeholder="Enter it one more time" /></Field
      ><template #submit-icon
        ><ArrowRight :size="17" aria-hidden="true" /></template></ActionForm
  ></AuthFrame>
</template>
```
