We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b223e commit 977c61eCopy full SHA for 977c61e
docs/fern/docs/pages/sdk/stack-provider.mdx
@@ -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