MICLComponentsApp bars

Component

App bars

The top container for a page: its title, its primary actions and the way back out.

  • 3 sizes
  • Sticky by default
  • Collapses on scroll
Inbox
Settings

Theme, language and clock

Sizes

Three sizes, all built from the same markup — only the modifier class changes.

The bars on this page title themselves with micl-heading so that the page keeps a single heading outline. A real page puts an h1 there instead.

A micl-appbar__subtitle sits under the headline.

Leading & trailing

Use micl-appbar__leading and micl-appbar__trailing — without the -icon suffix — for anything that is not an icon and should keep its own colour. On a medium or large bar the actions stay on the top row while the headline drops below them.

Alignment

Adding micl-appbar__headline--center centres the headline and its subtitle on the full width of the bar — not between the leading and trailing content — so a wide action on one side does not pull the title off centre.

Sticky & on scroll

In a single-pane layout the app bar sticks to the top of the page on its own — no class needed — and swaps its container colour as soon as the page moves underneath it. A sticky medium or large bar also collapses to the height of a small one as you go.

The same page on its own: open the sticky demo.

Theming