File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : PasswordReset
3
+ ---
4
+
5
+ # PasswordReset
6
+
7
+ A component for handling password reset functionality. It displays different messages based on the validity and state of the password reset code.
8
+
9
+ ## Props
10
+
11
+ - ` searchParams ` : ` Record<string, string> ` - An object containing search parameters, including the password reset code.
12
+ - ` fullPage ` (optional): ` boolean ` - Determines if the component should be displayed in full-page mode. Defaults to ` false ` .
13
+
14
+ ## Example
15
+
16
+ ``` tsx
17
+ import { PasswordReset } from ' @stackframe/stack' ;
18
+
19
+ function ResetPasswordPage() {
20
+ const searchParams = { code: ' reset123' };
21
+
22
+ return (
23
+ <PasswordReset
24
+ searchParams = { searchParams }
25
+ fullPage = { true }
26
+ />
27
+ );
28
+ }
29
+ ```
You can’t perform that action at this time.
0 commit comments