AppBar

The FluentAppBar component is an implementation of the AppBar as you know from the Teams application

Examples

Default

Download: 

Smaller icons

Example
Download: 

From list of apps

Example of using the AppBar with a list of apps

It also shows how to create a derived AppBarItem class that adds an Order property to explicitly set a custom order

Download: 

With OnClick event

Download: 

Documentation

FluentAppBar Class

Parameters

Name
Type
Default
Description
AppsOverflowIEnumerable<IAppBarItem>
Gets all app items with IAppBarItem.Overflow assigned to True.
ChildContentRenderFragment?
Gets or sets the content to display (the app bar items, FluentAppBarItem).
ItemsIEnumerable<IAppBarItem>?
Gets or sets the collections of app bar items.
Use eiter this or ChildContent to define the content of the app bar.
OrientationOrientation
Vertical
Gets or sets the Orientation of the app bar.
PopoverShowSearchbool
True
Gets or sets if the popover shows the search box.

EventCallbacks

Name
Type
Description
PopoverVisibilityChangedEventCallback<bool>
Event to be called when the visibility of the popover changes.

Methods

Name
Parameters
Type
Description
OverflowRaisedAsyncstring value
Task

FluentAppBarItem Class

Parameters

Name
Type
Default
Description
ChildContentRenderFragment?
Gets or sets the content to be shown.
Countint?
0
Gets or sets the count to show on the item with a FluentCounterBadge.
Hrefstring?
Gets or sets the URL for this item.
IconActiveIcon?
Gets or sets the Icon to use when the item is hovered/selected/active.
IconRestIcon
Gets or sets the Icon to use when the item is not hovered/selected/active.
MatchNavLinkMatch
Prefix
Gets or sets how the link should be matched.
Defaults to Microsoft.AspNetCore.Components.Routing.NavLinkMatch.Prefix.
Overflowbool?
If this app is outside of visible app bar area.
Textstring
Gets or sets the text to show under the icon.
Tooltipstring?
Gets or sets the tooltip to show when the item is hovered.

EventCallbacks

Name
Type
Description
OnClickEventCallback<IAppBarItem>
The callback to invoke when the item is clicked.
Horizontal
Vertical
Prefix
All
An error has occurred. This application may no longer respond until reloaded. Reload 🗙