FabMenu

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

Props

React props
NameTypeRequiredDefaultDescription
labelstringYes—Accessible name of the primary trigger.
iconIconYes—Icon shown while the menu is closed.
actionsreadonly FabMenuAction[]Yes—Framework-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.
openbooleanNo—Controlled open state.
defaultOpenbooleanNofalseInitial open state when uncontrolled.
classNamestring | ClassNameComponent<FabMenuInterface> | Partial<Record<"actions" | "fab" | "fabMenu" | "triggerSizer" | "triggerPositioner" | "actionContainer" | "action", string>>No—Classes or state-aware element classes applied through the shared style contract.
onOpenChange(open: boolean) => voidNo—Notifies an accepted open-state request.
onActionSelect(action: FabMenuAction, index: number) => voidNo—Notifies selection before the menu closes.