Skip to content

User Menu

Last updated 29 Nov 2026

NbUserMenu is the account menu every Nubisco product hangs off its shell: who you are signed in as, which other identities this browser holds, and the way out. It renders an avatar trigger and a panel teleported to <body>, so a sidebar with overflow: hidden cannot clip it.

vue
<template>
  <NbUserMenu
    :user="{ email: 'jose@nubisco.io', name: 'José Silva' }"
    @profile="router.push('/profile')"
    @sign-out="auth.signOut()"
  />
</template>

Accounts ​

Pass accounts when the product can enumerate the identities signed in on this browser: each one becomes a row, the current one is checked and inert, and the rest emit switch. Set accountsUnknown when that lookup failed, and the menu offers a generic Switch account action instead, so the identity provider can show its own chooser. Single-account products turn the whole section off with :show-account-actions="false".

Signing out ​

Sign out ends this product's session only, and it is always the first way out. A product whose server can do more can add Sign out of this account everywhere and Sign out of all accounts under it with sign-out-scopes. Without that prop the menu is exactly as it was. See Signing out.

Placement ​

right-end (the default) opens the panel to the right of the trigger, aligned to its bottom, for a rail-style sidebar. top-start opens it above and left-aligned, for a trigger sitting at the bottom of a wide sidebar or in a header.

On a phone (below 672px, or a touch phone held sideways) the rail is a drawer as wide as most of the screen, so right-end would open the panel past the right edge. There the panel always opens above the trigger, as top-start does, held 8px inside both screen edges. Desktops keep the placement you asked for.