Loader

Inline and overlay spinner for indicating asynchronous activity. Text and an animated ellipsis can be added optionally. Default: no text, md size, inline mode.

Basic (spinner only)

By default no text is shown — just the spinner.

PHP

With text

Use ->text() to show a label beside the spinner.

Loading
Fetching data
Please wait
PHP

Animated ellipsis

Call ->animateDots() to append a staggered three-dot animation after the text. Requires ->text() to be set.

Loading
Decrypting Messages
Uploading
PHP

Overlay mode

Use ->overlay() on a position:relative parent to show the loader centred over a content area. The parent must have position: relative. Click the button to toggle.

Content area — the overlay covers this.

Loading
PHP

Show / hide via JavaScript

Toggle the m-hidden class to show or hide a loader at any time.

Working
Loader is hidden.
PHP

PHP PHP Methods (Fluent)

Method / PropertyParametersDescription
$m->loader($id)stringCreate a loader instance. No text or animation by default.
->text($str)stringLabel displayed beside the spinner. Default: '' (none).
->animateDots($bool)boolAppend an animated three-dot ellipsis after the text. Default: false.
->size($size)stringSpinner size: sm, md (default), lg.
->overlay($bool)boolCover a position:relative parent. Default: false (inline).
->hidden($bool)boolStart hidden (m-hidden class). Default: false.