Floating action button

FabMenuControl

Keep a screen's main actions within reach in a round corner button.

Overview

FabMenuControl is a Blazor floating action button: a round button fixed to the bottom-right corner of the screen that fans out a speed dial of actions. Use it for the few things users do most on a screen, such as a new ticket or a call to the help desk; it stays in place while the page scrolls. Give it Items to fan out, an IconCss for the trigger and any extra markup as ChildContent.

Examples

#Trigger icon and extra content

Open the help desk button on a customer's ticket list: IconCss swaps the plus for a headset, and ChildContent adds a note to the fan; one rule on this page, ::deep .fx-fab-open .fx-fab-trigger-icon { transform: none; }, keeps the headset from turning 45 degrees as the fan opens. Press Urgent inside the note and the fan stays open; then pick how to get in touch.

Your open tickets
  • Router keeps restartingTKT-1042
  • Wi-Fi does not reach the garageTKT-1038
  • Change the name on the accountTKT-1031
No request yet

Documentation

ParameterTypeDefaultDescription
ItemsIList<FabMenuItem>?nullThe actions shown when the fan opens, the first nearest the trigger.
IconCssstring?nullTrigger icon. Default is a plus that rotates into a cross while open; a custom icon rotates too.
ChildContentRenderFragment?nullYour own markup in the fan after the items, such as a note or a toggle; clicks inside it keep the fan open.
DisabledboolfalseDisables the trigger, so the menu cannot open, and closes a menu that is open. The trigger looks the same; only the hover effect stops.
Title (base)string?nullTooltip and accessible name of the trigger.
CssClass / Style (base)string?nullOn the host element.
Visible / Enabled (base)booltrueAccepted but have no effect. Use Disabled to disable the trigger.
Id / Tag / Data / Parent (base)nullAccepted but not rendered. A written id binds to Id, so it does not reach the host.
(unmatched attributes)Dictionary<string,object>—Forwarded to the host <div>.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.