Skip to content

Commit d9bd5d2

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/oauth-button-group.mdx
1 parent c900673 commit d9bd5d2

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: OAuthButtonGroup
3+
---
4+
5+
# OAuthButtonGroup
6+
7+
Renders a group of OAuth buttons for sign-in or sign-up functionality.
8+
9+
## Parameters
10+
11+
- `type`: `'sign-in' | 'sign-up'` - Specifies whether the buttons are for sign-in or sign-up.
12+
- `mockProject` (optional): `Object` - A mock project object for testing purposes. If not provided, the component will use the project from the Stack App context.
13+
- `config`: `Object`
14+
- `oauthProviders`: `Array`
15+
- `id`: `string` - The ID of the OAuth provider
16+
17+
## Example
18+
19+
```tsx
20+
import { OAuthButtonGroup } from '@stackframe/stack';
21+
22+
// Basic usage
23+
<OAuthButtonGroup type='sign-in' />
24+
25+
// With mock project
26+
const mockProject = {
27+
config: {
28+
oauthProviders: [
29+
{ id: 'google' },
30+
{ id: 'github' }
31+
]
32+
}
33+
};
34+
<OAuthButtonGroup type='sign-up' mockProject={mockProject} />
35+
```

0 commit comments

Comments
 (0)