Buttons

Floating action button

Keep a screen-level primary action visible above the surrounding content.

Playground

Configure the component and copy synchronized Vue code.

Interactive preview

Changes are reflected in the example and source.

Properties

Variant

Size

Icon

Disabled

Vue

<m-button-fab variant="filled" size="md" aria-label="Create item">
  <m-icon name="ic:round-add" />
</m-button-fab>

Token map

The manual manifest combines inherited token owners with local deltas.

MButtonFab · All55 tokens
md-fab

MButtonFab API

Props, slots, and events are generated from the current public kit contract.

MButtonFab

Button family
src/runtime/components/ui/button/fab

Props

NameTypeDefault
colorSemantic Material color role used by the component scheme.
'primary' | 'secondary' | 'tertiary' | 'error''primary'
variantMaterial surface treatment that controls the component emphasis.
'elevated' | 'filled' | 'tonal' | 'outlined' | 'text''filled'
sizeComponent size on the shared small, medium, and large scale.
'sm' | 'md' | 'lg''md'
disabledPrevents interaction and applies the disabled visual state.
booleanfalse
loadingReplaces content with progress feedback and prevents interaction.
booleanfalse
ariaLabelAccessible name required by the icon-only FAB.
stringundefined

Slots

Events

MButtonFab does not emit component-specific events. Native events fall through to its root element.