GitHub

Change Password Form

Block
Form for changing user password

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { ChangePasswordForm } from "@corew500/ui/blocks/change-password-form"

<ChangePasswordForm>Content</ChangePasswordForm>

API Reference

Props

PropTypeDefaultDescription
onFormSubmit(data: ChangePasswordFormData) => voidCalled when the form is submitted
onCancel() => voidCalled when cancel button is clicked
loadingenumfalseWhether the form is in a loading state
successenumfalseWhen true, shows success state instead of form
glowenumfalseEnable glow effects
titlestringChange password
descriptionstringEnter your current password and choose a new one.
successTitlestringPassword changed!
successDescriptionstringYour password has been updated successfully.
successActionenum
labels{ currentPassword?: string; newPassword?: string; confirmPassword?: string; }{}
placeholders{ currentPassword?: string; newPassword?: string; confirmPassword?: string; }{}
buttonLabels{ submit?: string; loading?: string; cancel?: string; }{}
errors{ currentPassword?: string; newPassword?: string; confirmPassword?: string; general?: string; }{}
features{ passwordToggle?: boolean; passwordRequirements?: boolean; showCancel?: boolean; }{}
passwordRequirementsPasswordRequirement[]Custom password requirements