Avatar trigger that opens a dropdown with profile, settings, billing, and sign-out items.
UserMenu wraps Avatar + DropdownMenu so the account surface stays consistent across product apps. Pass an items array of UserMenuItem entries.
Items support href anchors or onSelect callbacks.
<UserMenu
email="frogg@example.com"
items={[
{ label: "Profile", href: "/profile" },
{ label: "Settings", href: "/settings" },
{ label: "Sign out", destructive: true }
]}
name="Wandi Frogg"
/>import { UserMenu, type UserMenuItem } from "@froggdesign/enter-ui-react";The trigger is a real <button>; the menu uses DropdownMenu so keyboard navigation, focus trap, and arrow-key wrapping inherit Radix mechanics. The trigger announces the user name through aria-label when no visible label is rendered.
name, email: shown in trigger and menu header.src / fallback: avatar image source and fallback initials override.items: each item supports label, optional href or onSelect, icon, shortcut, and destructive.Every exported component accepts className. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.