Skip to content

Commit ec28f90

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/credential-sign-in.mdx
1 parent 8fbb116 commit ec28f90

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: CredentialSignIn
3+
---
4+
5+
# CredentialSignIn
6+
7+
A React component that renders a sign-in form using email and password credentials.
8+
9+
## Usage
10+
11+
```tsx
12+
import { CredentialSignIn } from '@stackframe/stack';
13+
14+
function SignInPage() {
15+
return (
16+
<div>
17+
<h1>Sign In</h1>
18+
<CredentialSignIn />
19+
</div>
20+
);
21+
}
22+
```
23+
24+
## Features
25+
26+
- Email and password input fields
27+
- Form validation using Yup schema
28+
- Error handling and display
29+
- Loading state during sign-in process
30+
- 'Forgot password' link
31+
- Submission button
32+
33+
The component uses the `useStackApp` hook to access the app instance for signing in and retrieving URLs.

0 commit comments

Comments
 (0)