Skip to content

Alert

Inline messages for information, success, warnings and errors, with optional actions and dismiss.

Colours

A new version is available

MIAN 1.1 adds six more noodles.

Payment received

Your invoice has been paid in full.

Your trial ends in 3 days

Add a payment method to keep your projects.

With actions

Try the Udon noodle

Softer corners, warmer colours, roomier controls.

Solid

Heads up

Scheduled maintenance tonight from 02:00 to 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/alert.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-alertSoft alert, info by default. Add a colour role.
mn-alert-solid · mn-alert-neutralVariants.
mn-alert-icon · mn-alert-title · mn-alert-desc · mn-alert-actionsParts.
[data-mn-dismiss]A button that removes the alert (emits cancelable mn:dismiss).

Accessibility

  • Static alerts are plain content. For messages that appear after an action, add role="alert" (urgent) or role="status" (polite).
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page