We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493166e commit 22b8334Copy full SHA for 22b8334
1 file changed
docs/fern/docs/pages/sdk/stack-provider.mdx
@@ -0,0 +1,29 @@
1
+---
2
+title: StackProvider
3
4
+
5
+# StackProvider
6
7
+A React component that provides Stack context to its children.
8
9
+## Parameters
10
11
+- `children`: `React.ReactNode` - The child components to be wrapped by the StackProvider.
12
+- `app`: `StackClientApp<true>` - A Stack client app instance.
13
14
+## Example
15
16
+```tsx
17
+import { StackProvider } from '@stackframe/stack';
18
+import { app } from './stackConfig';
19
20
+function App() {
21
+ return (
22
+ <StackProvider app={app}>
23
+ {/* Your app components */}
24
+ </StackProvider>
25
+ );
26
+}
27
+```
28
29
+This component wraps your application with the necessary Stack context, enabling access to Stack features in child components.
0 commit comments