NV-04Navigation
Account Menu
An account card that morphs into its own menu, with account switching, status, theme and hold-to-sign-out.
PRODocs Search and more like it are in Kokonut UI Pro
Installation
Account Menu is a free, open-source React component in the Kokonut UI Navigation collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/profile-dropdown.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/profile-dropdownOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/profile-dropdown.tsx.
npm install lucide-react motionUsage
import ProfileDropdown from "@/components/kokonutui/profile-dropdown";
export default function Example() {
return <ProfileDropdown />;
}Props
accountsAccount[]Default built-indefaultAccountIdstringonAccountChange(account: Account) => voidonAddAccount() => voiditemsProfileMenuItem[]Default built-inMenu entries between the settings rows and Switch account.
themeAccountThemeControlled theme. Leave it out to keep the choice in local state.
defaultThemeAccountThemeDefault "system"onThemeChange(theme: AccountTheme) => voidstatusAccountStatusdefaultStatusAccountStatusDefault "online"onStatusChange(status: AccountStatus) => voidonSignOut() => voidCalled once Sign out has been held for holdDuration ms.
holdDurationnumberDefault 1200Also takes every prop of Omit<HTMLAttributes<HTMLDivElement>, "onChange">.
Account
idrequiredstringnamerequiredstringemailrequiredstringinitialsstringShown in the avatar. Defaults to the first letters of name.
planstringPlain label shown in the menu header, such as "Pro".
ProfileMenuItem
labelrequiredstringiconReactNodevaluestringQuiet text on the right, such as a plan name or a shortcut.
hrefstringRenders the item as a link. Without it the item is a button.
externalbooleanOpens href in a new tab.
onSelect() => voidAccountTheme
type AccountTheme = "light" | "dark" | "system";AccountStatus
type AccountStatus = "online" | "away" | "busy";Dependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react | ^0.556.0 | npm, installed by the CLI |
motion | ^12.23.25 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

