flohoeller

Profile Menu

Component 10

About

An account card showing the signed-in user's name, email and avatar, a keyboard-navigable menu of account actions, and an optional profile setup progress bar.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Profile Menu to your project and fits it to your theme.

Code

How Profile Menu is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  ProfileMenu,
  SettingsIcon,
  LogoutIcon,
} from "@/components/ui/profile-menu";

export default function ProfileMenuDemo() {
  const openSettings = () => console.log("open settings");
  const signOut = () => console.log("sign out");
  const openProfile = () => console.log("continue profile setup");

  return (
    <div className="flex min-h-[420px] w-full items-center justify-center bg-background p-8 text-foreground">
      <ProfileMenu
        name="Lena Hartmann"
        email="[email protected]"
        items={[
          {
            id: "settings",
            label: "Settings",
            icon: <SettingsIcon />,
            onSelect: openSettings,
          },
          {
            id: "logout",
            label: "Logout",
            icon: <LogoutIcon />,
            onSelect: signOut,
          },
        ]}
        setup={{
          done: 3,
          total: 5,
          next: "Add a profile photo",
          onContinue: openProfile,
        }}
      />
    </div>
  );
}

More by flohoeller

View all
  • Tab Overload

    Tab Overload

    27
  • Side Folder

    Side Folder

    26
  • Agent Team

    Agent Team

    24
  • Filter Menu

    Filter Menu

    20
  • Comment Thread

    Comment Thread

    15
  • Team Invite

    Team Invite

    14
  • Integration Grid

    Integration Grid

    13
  • Progress Tracker

    Progress Tracker

    13