Skip to content

Loader

Eight loading indicators, dots, bars, wave, grid, pulse, orbit, ring and a top-of-page line, in the current colour.

Loaders

Large size. Each takes the colour of a colour role or of the text around it.

Sizes and a line

Loading invoices…

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/loader.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-loaderThe loader, with one variant class. Size with mn-loader-sm / -lg or --_s; colour with a colour role or currentColor.
mn-loader-dots · -bars · -wave · -gridNeed child <i> elements: 3 dots, 5 bars, 5 wave, 9 grid.
mn-loader-pulse · -ringNo children.
mn-loader-orbitTwo <i> children.
mn-loader-lineA full-width line for the top of a page or a card.

Accessibility

  • Give the loader role="status" and an aria-label (“Loading invoices”), or put visible text next to it.
  • Under prefers-reduced-motion every loader slows to a gentle 3-second cycle.
  • For waits over a few seconds, prefer a progress bar with a value, or a skeleton.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page