mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-21 21:09:49 +08:00
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com> Co-authored-by: Madison Kennedy <madison@Madisons-MacBook-Pro.local> Co-authored-by: BilalG1 <bg2002@gmail.com>
40 lines
846 B
Plaintext
40 lines
846 B
Plaintext
---
|
|
title: "<PasswordReset />"
|
|
---
|
|
|
|
Renders a password reset component based on the provided search parameters and optional full page display.
|
|
|
|
## Props
|
|
|
|
<PropTable
|
|
props={[
|
|
{
|
|
name: "searchParams",
|
|
type: "Record<string, string>",
|
|
description: "An object containing search parameters, including the password reset code."
|
|
},
|
|
{
|
|
name: "fullPage",
|
|
type: "boolean",
|
|
description: "Determines whether to display the component in full page mode.",
|
|
optional: true,
|
|
default: "false"
|
|
}
|
|
]}
|
|
/>
|
|
|
|
## Example
|
|
|
|
```tsx title="app/reset-password.tsx"
|
|
import { PasswordReset } from '@stackframe/stack';
|
|
|
|
export function ResetPasswordPage(props: { searchParams: Record<string, string> }) {
|
|
return (
|
|
<PasswordReset
|
|
searchParams={props.searchParams}
|
|
fullPage={true}
|
|
/>
|
|
);
|
|
}
|
|
```
|