Skip to content

Banner

A full-width announcement bar for launches, maintenance notices or cookie-free notes. Dismissible.

Banners

MIAN 1.3: new noodles and components.See what’s new
Scheduled maintenance on Sunday, 02:00–03:00 UTC.

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/banner.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-bannerThe bar. Accepts colour roles (defaults to ink).
mn-banner-softA tinted version.
mn-banner-borderedRounded, for use inside a layout.
[data-mn-dismiss=".mn-banner"]A close button removes it (cancelable mn:dismiss).

Accessibility

  • Use role="region" with an aria-label so it can be found, or role="status" if it appears after load.
  • The close button needs a label. Keep the message short and put links inside the text.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page