GitHub

Reset Password Form

Block
Form for resetting password with token

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { ResetPasswordForm } from "@corew500/ui/blocks/reset-password-form"

<ResetPasswordForm>Content</ResetPasswordForm>

API Reference

Props

PropTypeDefaultDescription
onFormSubmit(data: ResetPasswordFormData) => voidCalled when the form is submitted
loadingenumfalseWhether the form is in a loading state
successenumfalseWhen true, shows success state instead of form
glowenumfalseEnable glow effects
titlestringReset password
descriptionstringEnter your new password below.
successTitlestringPassword updated!
successDescriptionstringYour password has been reset successfully. You can now log in with your new password.
successActionenum
labels{ password?: string; confirmPassword?: string; }{}
placeholders{ password?: string; confirmPassword?: string; }{}
buttonLabels{ submit?: string; loading?: string; backToLogin?: string; }{}
errors{ password?: string; confirmPassword?: string; general?: string; }{}
features{ passwordToggle?: boolean; passwordRequirements?: boolean; }{}
backToLoginHrefstring#
passwordRequirementsPasswordRequirement[]Custom password requirements