Skip to content
+

Account

A component that renders an account management dropdown for your application.

The Account component is a quick and easy way to display an account management menu for authenticated users. It is deeply integrated with the SignInPage and DashboardLayout components, meaning that it automatically appears in the top navigation bar inside DashboardLayout once your users have signed in through the SignInPage.

States

Signed In

If a session object is present, the component is rendered as a dropdown containing the user's account details as well as an option to sign out.

Press Enter to start editing

Signed Out

When signed out, the component renders as an inline sign in button within the dashboard layout.

Press Enter to start editing

Customization

Slot Props

The underlying signInButton, signOutButton and iconButton components can be customized by passing in slotProps to the Account component.

Labels for the sign in and sign out buttons can be customized through the localeText prop.

Signed in

Signed out

Press Enter to start editing

Slots

You can pass in your own items to the Account menu through the menuItems slot to add additional menu items in the space between the user's account details and the sign out button, to create larger, more complex menus:

Press Enter to start editing

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.