BETTER-AUTH. UI
Components

<ForgotPassword />

Renders a Solid form that requests a password reset link by email.

Usage

import { ForgotPassword } from "@/components/auth/forgot-password"

export function ForgotPasswordDemo() {
  return <ForgotPassword redirectTo="/auth/reset-password" />
}

Installation

npx shadcn@latest add https://better-auth-ui.com/r/solid/forgot-password.json

After install, src/components/auth/forgot-password.tsx and the copied forgot-password files are app-owned. Set redirectTo when your reset route differs from the default auth path.

Props

Prop

Type

Last updated on

On this page