Skip to content

Dock

A bottom navigation bar for mobile apps and compact layouts, floating or in the page.

Dock

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/dock.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-dockThe bar (a <nav>).
mn-dock-itemA link or button with an icon and a label; aria-current="page" marks the current one.
mn-dock-fixedFloat it at the bottom of the viewport.
mn-dock-compactIcons only (keep aria-labels).

Accessibility

  • Use <nav aria-label="…">. Keep visible labels where you can; with mn-dock-compact every item needs an aria-label.
  • Targets are at least 48 × 48 px.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page