Skip to content

Commit 50f3ec2

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/account-settings.mdx
1 parent 0d7f3d6 commit 50f3ec2

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: AccountSettings
3+
---
4+
5+
# AccountSettings
6+
7+
Renders an account settings component with various sections like profile, security, and settings.
8+
9+
## Parameters
10+
11+
- `fullPage` (optional): `boolean` - Determines whether to render the component in full-page mode. Default is `false`.
12+
13+
## Example
14+
15+
```tsx
16+
import { AccountSettings } from '@stackframe/stack';
17+
18+
// Render in default mode
19+
function DefaultAccountSettings() {
20+
return <AccountSettings />;
21+
}
22+
23+
// Render in full-page mode
24+
function FullPageAccountSettings() {
25+
return <AccountSettings fullPage={true} />;
26+
}
27+
```
28+
29+
The component uses `useUser` hook with a redirect option and renders a `SidebarLayout` with different sections. When `fullPage` is true, it wraps the content in a `Container` component.

0 commit comments

Comments
 (0)