FabMenu

The floating action button menu opens from a FAB to display multiple related actions.

Props

React props
NameTypeRequiredDefaultDescription
labelstringYesAccessible name of the primary trigger.
iconIconYesIcon shown while the menu is closed.
actionsreadonly FabMenuAction[]YesFramework-independent action model.
closeIconIconNoDEFAULT_FAB_MENU_CLOSE_ICONOptional icon shown while the menu is open.
closeLabelstringNo`Close ${label}`Accessible name of the open/close trigger while open.
actionsLabelstringNo`${label} actions`Accessible name applied to the action group.
variantFabMenuVariantNo'primary'Trigger and action color family.
sizeFabSizeNo'small'Closed trigger size; the open close control is always medium.
extendedbooleanNofalseShows the closed trigger text beside its icon.
disabledbooleanNofalseDisables the trigger and every action.
openbooleanNoControlled open state.
defaultOpenbooleanNofalseInitial open state when uncontrolled.
classNamestring | ClassNameComponent<FabMenuInterface> | Partial<Record<"actions" | "fab" | "fabMenu" | "triggerSizer" | "triggerPositioner" | "actionContainer" | "action", string>>NoClasses or state-aware element classes applied through the shared style contract.
onOpenChange(open: boolean) => voidNoNotifies an accepted open-state request.
onActionSelect(action: FabMenuAction, index: number) => voidNoNotifies selection before the menu closes.