Athena

UserButton

Authenticated user trigger button that opens the user actions dropdown.

Import

import { UserButton } from "@xylex-group/athena-auth-ui"

Details

  • Category: component
  • Primary entrypoint: @xylex-group/athena-auth-ui
  • Public entrypoints: @xylex-group/athena-auth-ui
  • Source: packages/heroui/src/components/auth/user/user-button.tsx

Props

PropTypeRequiredNotes
classNamestring | undefinedNo
size"default" | "icon" | undefinedNo
placementPlacement | undefinedNoThe placement of the element with respect to its anchor element.
variant"secondary" | "tertiary" | "danger" | "danger-soft" | "ghost" | "outline" | "primary" | undefinedNo
links(ReactElement<unknown, string | React.JSXElementConstructor<any>> | UserButtonLink)[] | undefinedNoAdditional menu entries rendered above the built-in items.
hideSettingsboolean | undefinedNoHide the built-in "Settings" link. Useful when replacing it via links.
uiAthenaAuthUiOptions | undefinedNo

Notes

  • Most interactive auth components expect to be rendered under AuthProvider so hooks such as useAuth and the configured navigation bridge are available.
  • See Customization Guide for provider-level localization, route overrides, class-name slots, loading overrides, and email template key mapping.