Components › Blocks

Account menu

The signed-in user's menu: name and plan, a dark mode switch, links, another account and sign out.

Installation

npx plankui@latest add account-menu

Usage

import { AccountMenu } from "@/components/ui/account-menu";

<AccountMenu name="James Brown" email="[email protected]" plan="Pro" dark={dark} onDarkChange={setDark} onSignOut={signOut} />

API reference

PropTypeDefaultDescription
name / email / srcstringWho is signed in.
planstringA badge next to the name.
items{ label, icon?, shortcut?, onSelect? }[][]Links such as Settings.
dark / onDarkChangeboolean, (dark) => voidShows the dark mode switch.
onAddAccount / onSignOut() => voidShow those rows.

View the source on GitHub