Feedback

Banner

A persistent situation that needs a decision — wide, inline, and never blocking.
Synchronization is off
Changes are stored on this device only.

Playground

Configure the component and copy synchronized Vue code.

Interactive preview

Changes are reflected in the example and source.

Synchronization is off
Changes are stored on this device only.

Properties

Variant

Layout

Content

Closable

Leading icon

Vue

<m-banner
  icon="round-cloud-off"
  title="Synchronization is off"
>
  Changes are stored on this device only.

  <template #actions>
    <m-button variant="text">Learn more</m-button>
    <m-button variant="text">Set up sync</m-button>
  </template>
</m-banner>

Token map

The manual manifest combines inherited token owners with local deltas.

MBanner · All28 tokens
md-banner

MBanner API

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

MBanner

Feedback family
src/runtime/components/ui/banner

Props

NameTypeDefault
titlePlain-text title; the `title` slot takes precedence.
stringundefined
textPlain-text body; the default slot takes precedence.
stringundefined
iconLeading icon. There is no default: the banner has no severity to infer one from. `false` suppresses an icon supplied by a wrapper preset.
string | falseundefined
layoutPresentation of the actions row.
'auto' | 'inline' | 'stacked''auto'
variantNeutral surface preset.
'surface' | 'tonal''surface'
closableRenders the dismiss control.
booleanfalse
closeLabelAccessible name of the dismiss control.
string'Close'
announceLive-region politeness.
'polite' | 'off''polite'

Slots

Events

@closevoid