Skip to content

Commit 977c61e

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/stack-provider.mdx
1 parent 77b223e commit 977c61e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: StackProvider
3+
---
4+
5+
# StackProvider
6+
7+
A React component that provides Stack authentication context to its children.
8+
9+
## Parameters
10+
11+
- `children`: `React.ReactNode` - The child components to be wrapped by the provider.
12+
- `app`: `StackClientApp<true>` - An initialized Stack client app instance.
13+
14+
## Example
15+
16+
```tsx
17+
import { StackProvider } from '@stackframe/stack';
18+
19+
function App({ app }) {
20+
return (
21+
<StackProvider app={app}>
22+
{/* Your app components */}
23+
</StackProvider>
24+
);
25+
}
26+
```

0 commit comments

Comments
 (0)