stack/docs/templates/components/password-reset.mdx
Madison 4e467c4026
New docs (#698)
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>
2025-06-20 13:30:01 -07:00

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}
/>
);
}
```