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-menuUsage
import { AccountMenu } from "@/components/ui/account-menu";
<AccountMenu name="James Brown" email="[email protected]" plan="Pro" dark={dark} onDarkChange={setDark} onSignOut={signOut} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| name / email / src | string | Who is signed in. | |
| plan | string | A badge next to the name. | |
| items | { label, icon?, shortcut?, onSelect? }[] | [] | Links such as Settings. |
| dark / onDarkChange | boolean, (dark) => void | Shows the dark mode switch. | |
| onAddAccount / onSignOut | () => void | Show those rows. |