Profile menu preview

Profile menu

Account card with the signed-in user, menu actions and profile setup progress

  • Group
    Menus
  • Origin
    Copied · affectUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/profile-menu

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { ProfileMenu } from "@/registry/components/profile-menu/profile-menu";

<ProfileMenu name="…" email="…">Label</ProfileMenu>

Props

NameTypeDefaultDescription
namestringName of the signed-in user
emailstringEmail under the name, cut off with an ellipsis when long
avatarReactNodeReplaces the default avatar, e.g. an <img>
itemsProfileMenuItem[]Actions with label, icon, optional badge and onSelect
setupProfileSetupProfile setup progress: done, total, the next step and onContinue – leave empty to hide
classNamestringExtra class on the card

When to use

- The dropdown behind the avatar in an app header - Nudging people to finish their profile, right next to the account actions

When not to use

Generic action menus (goo-dropdown).

Related

Goo dropdown · Progress tracker