ProfileMenu

A "User Profile Menu" is a component commonly found on websites or applications. It typically appears in the top-right corner of a web page and provides options related to the user's account. Within this menu, users can access features such as viewing their account details, adjusting settings, and logging out. It serves as a convenient hub for managing account-related actions.

Default

Example
Bill Gates
Bill Gates
Download: 

Customized

Example
Bill Gates
BG
Download: 

Documentation

Depending on how your CSS styles are configured (e.g. whether body contains an overflow or not), the ProfileMenu may be displayed with a flicking effect when placed at the top right or top left of the screen. To avoid this, you can use the TopCorner="true" property, which forces the positioning of the popup.

FluentProfileMenu Class

Parameters

Name
Type
Default
Description
ButtonSizestring?
32px
Gets or sets the size of the main button image (button clickable to display the popover).
ChildContentRenderFragment?
Gets or sets the content to be displayed in the main section (body) of the popover.
Using this property will override the FluentProfileMenu.EMail, FluentProfileMenu.FullName, FluentProfileMenu.Image properties.
EMailstring?
Gets or sets the email to display.
EndTemplateRenderFragment?
Gets or sets the content to be displayed in the end (right) section of the Profile button.
FooterLabelstring?
Gets or sets the footer label to display on the bottom-left.
FooterLinkstring?
View account
Gets or sets the Footer hyperlink label (e.g. View account) on the bottom-right.
FooterTemplateRenderFragment?
Gets or sets the content to be displayed in the footer section of the popover.
Using this property will override the FluentProfileMenu.FooterLink property.
FullNamestring?
Gets or sets the name to display.
HeaderButtonstring?
Sign out
Gets or sets the Header Button label (e.g. Sign out) on the top-right.
HeaderLabelstring?
Gets or sets the header label (e.g Company Name) to display on the top-left.
HeaderTemplateRenderFragment?
Gets or sets the content to be displayed in the header section of the popover.
Using this property will override the FluentProfileMenu.HeaderLabel and FluentProfileMenu.HeaderButton properties.
Imagestring?
Gets or sets the image to display, in replacement of the initials.
ImageSizestring?
64px
Gets or sets the size of the image, in the popover.
Initialsstring?
Gets or sets the initials to display if no image is provided.
By default, the first letters of the FluentProfileMenu.FullName is used.
Openbool
False
Gets or sets the Menu status.
PopoverClassstring?
Gets or sets the Class to apply to the Profile Popup.
PopoverStylestring?
Gets or sets the Style to apply to the Profile Popup.
StartTemplateRenderFragment?
Gets or sets the content to be displayed in the start (left) section of the Profile button.
StatusPresenceStatus?
Gets or sets the status to show. See PresenceStatus for options.
StatusTitlestring?
Gets or sets the title to show on hover. If not provided, the status will be used.
TopCornerbool
False
Gets or sets whether popover should be forced to top right or top left (RTL).

EventCallbacks

Name
Type
Description
OnFooterLinkClickEventCallback
Event raised when the user clicks on the Footer hyperlink (e.g. View account).
OnHeaderButtonClickEventCallback
Event raised when the user clicks on the Header Button (e.g. Sign out).
OpenChangedEventCallback<bool>
Gets or sets the callback that is invoked when the open state changes.
Busy
OutOfOffice
Away
Available
Offline
DoNotDisturb
Unknown
An error has occurred. This application may no longer respond until reloaded. Reload 🗙