Skip to content

Components · Reference

UserButton

Add an account menu with profile settings and sign-out.

Preview

Loading preview…

Usage

tsx
import { UserButton } from "@krak-stack/auth/user-button/react";

export const Example = () => <UserButton signOutRedirect="/" />;

Place UserButton inside KrakstackAuthProvider. Use signOutRedirect to choose where the user lands after signing out, or menuActions to add application-owned links.