UserButton

fun UserButton(clerkTheme: ClerkTheme? = null, treatPendingAsSignedOut: Boolean = false)

Self-contained avatar button + user profile flow.

Drop this into a TopAppBar actions slot; on tap it will open the full user profile UI in a full-screen dialog and close itself when done.

Parameters

clerkTheme

Optional theme customization for the user profile UI.

treatPendingAsSignedOut

When true, the button will only appear when the session status is ACTIVE. When false (default), the button will appear even if the session is PENDING.