forked from stack-auth/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patched docs/fern/docs/pages/sdk/types/credential-sign-up.mdx
- Loading branch information
patched.codes[bot]
committed
Dec 10, 2024
1 parent
a6384b8
commit a095bc2
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: CredentialSignUp | ||
--- | ||
|
||
# CredentialSignUp | ||
|
||
A component that renders a sign-up form with email and password fields. | ||
|
||
## Props | ||
|
||
- `noPasswordRepeat` (optional): `boolean` - If true, the form will not include a password repeat field. | ||
|
||
## Example | ||
|
||
```tsx | ||
import { CredentialSignUp } from '@stackframe/stack'; | ||
|
||
// Basic usage | ||
<CredentialSignUp /> | ||
|
||
// Without password repeat field | ||
<CredentialSignUp noPasswordRepeat={true} /> | ||
``` | ||
|
||
The form includes email and password fields, with optional password repeat. It handles form validation and submission, including password strength checks and email format validation. |