Skip to content

Commit 556609e

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/forgot-password.mdx
1 parent c56a8dd commit 556609e

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: ForgotPassword
3+
---
4+
5+
# ForgotPassword
6+
7+
A React component that renders a forgot password interface. It handles different states such as signed-in user, email sent, and the initial forgot password form.
8+
9+
## Parameters
10+
11+
- `fullPage` (optional): `boolean` - Determines whether the component should be rendered in full-page mode. Defaults to `false`.
12+
13+
## Returns
14+
15+
Returns a React element representing the forgot password interface.
16+
17+
## Example
18+
19+
```tsx
20+
import { ForgotPassword } from '@stackframe/stack';
21+
22+
// Basic usage
23+
const BasicForgotPassword = () => {
24+
return <ForgotPassword />;
25+
};
26+
27+
// Full-page mode
28+
const FullPageForgotPassword = () => {
29+
return <ForgotPassword fullPage={true} />;
30+
};
31+
```
32+
33+
This component uses internal hooks and components from the Stack SDK to manage user state and render appropriate UI elements based on the current state of the forgot password process.

0 commit comments

Comments
 (0)