Skip to content

Commit 0d7f3d6

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

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: UserButton
3+
---
4+
5+
# UserButton
6+
7+
A React component that displays a user button with loading state handling.
8+
9+
## Parameters
10+
11+
- `props`: `UserButtonProps` - The properties for configuring the UserButton component.
12+
13+
## Example
14+
15+
```tsx
16+
import { UserButton } from '@stackframe/stack';
17+
18+
function MyComponent() {
19+
return (
20+
<UserButton
21+
// Add UserButtonProps here
22+
/>
23+
);
24+
}
25+
```
26+
27+
This component uses React Suspense for loading state management. It displays a skeleton loader while the user data is being fetched.

0 commit comments

Comments
 (0)