Skip to content

Commit

Permalink
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/s…
Browse files Browse the repository at this point in the history
…dk/user-button.mdx
  • Loading branch information
patched.codes[bot] committed Aug 20, 2024
1 parent 556609e commit 25adbaa
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs/fern/docs/pages/sdk/user-button.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: UserButton
---

# UserButton

A React component that renders a user button with loading state handling. It uses React Suspense for loading fallback.

## Parameters

- `props`: `UserButtonProps` - The properties for the UserButton component.

## Example

```tsx
import { UserButton } from '@stackframe/stack';

function MyComponent() {
return (
<div>
<h1>Welcome</h1>
<UserButton
// Add any necessary UserButtonProps here
/>
</div>
);
}
```

## Notes

- The component uses React Suspense for handling the loading state.
- A Skeleton component is used as a fallback while the content is loading.
- The actual button content is rendered by the `UserButtonInner` component once data is available.

0 comments on commit 25adbaa

Please sign in to comment.