Change Password

Full-height change-password screen with current, new, and confirm password fields (show/hide toggles), a forgot-password link, and a cancel option. Perfect for account security settings.

PRO

Auth40: Change Password

A full-height, centered change-password screen: a heading and description above a bordered card holding a current-password field with an inline forgot-password link, plus new-password and confirm-password fields that each carry an eye/eye-off show/hide toggle, a submit button, and a cancel prompt line beneath the card.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/auth40?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/auth40?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/auth40.tsx, plus the button, input, and field shadcn/ui primitives it uses for the submit and toggle buttons, the password inputs, and the labeled field rows.

Quick start

The installed file exports auth40Demo alongside the block: the exact props behind the preview above. Spread it to get a working change-password screen in one line.

tsx
import { Auth40, auth40Demo } from "@/components/beste/block/auth40";

export default function Page() {
  return <Auth40 {...auth40Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Auth40 } from "@/components/beste/block/auth40";

export default function Page() {
  return (
    <Auth40
      heading="Change password"
      description="Update the password you use to sign in."
      labels={{
        currentPassword: "Current password",
        newPassword: "New password",
        confirmPassword: "Confirm new password",
        submit: "Update password",
        passwordToggle: "Toggle password visibility",
      }}
      forgotPasswordLink={{ label: "Forgot password?", href: "/reset" }}
      cancelPrompt={{ text: "Changed your mind?", linkLabel: "Cancel", href: "/account" }}
    />
  );
}

Props

PropTypeDefaultDescription
headingstringCentered page title above the card; hidden when omitted
descriptionstringMuted subtitle under the heading; hidden when omitted
labelsLabels{}Field labels, placeholders, submit text, and toggle aria-label
forgotPasswordLink{ label: string; href: string }Right-aligned link beside the current-password label
cancelPrompt{ text: string; linkLabel: string; href: string }Prompt line and link rendered below the card
classNamestringExtra classes for the outer <section>
ts
type Labels = {
  currentPassword?: string;
  currentPasswordPlaceholder?: string;
  newPassword?: string;
  newPasswordPlaceholder?: string;
  confirmPassword?: string;
  confirmPasswordPlaceholder?: string;
  submit?: string;
  passwordToggle?: string;
};

Behavior notes

Wiring the form up

This block ships the form markup only; state, validation, and submit are yours to add. Our guide wires the shadcn Field primitives to React Hook Form, TanStack Form, and Formisch on one field system.

More Auth blocks

View all Auth
FREE

auth5

Set New Password

Full-height reset-password screen with new and confirm password fields (each with a show/hide toggle) and a live requirements checklist that ticks off rules as the user types. Perfect for the final step of a password reset or invite flow.

PRO

auth46

Confirm It's You

Full-height step-up authentication screen that re-asks for the password before a sensitive action, showing the signed-in account and a cancel option. Perfect for protecting billing, security, and destructive actions.

PRO

auth18

New Sign-In Security Alert

Full-height security notification screen listing the device, location, and time of a new sign-in, with confirm-it-was-me and secure-my-account actions. Perfect for suspicious-login alerts and account safety prompts.

PRO

auth8

Welcome Back Unlock

Full-height re-authentication screen showing the signed-in user's avatar, name, and email with a single password field, a forgot-password link, and a use-a-different-account option. Perfect for session unlock and returning-user prompts.

PRO

auth21

Passkey Sign In

Full-height passwordless sign-in screen with a fingerprint icon, a continue-with-passkey button, and a password fallback below a divider. Perfect for WebAuthn and biometric authentication flows.

PRO

auth17

Signed Out Confirmation

Full-height signed-out screen with a centered icon, a heading and message, a sign-back-in button, and a return-home link. Perfect for logout confirmations and expired-session pages.