Dock
A dock is also called bottom navigation or a bottom bar. It gives navigation options and stays at the bottom of the screen.
Class names
- component:
dock - part:
dock-label - modifier:
dock-active - size:
dock-xs,dock-sm,dock-md,dock-lg,dock-xl
Syntax
<div class="dock {MODIFIER}">{CONTENT}</div>
The content is a list of buttons:
<button>
<svg>{icon}</svg>
<span class="dock-label">Text</span>
</button>
Rules
{MODIFIER}is optional. It can be one of the size class names.- To make a button active, add the
dock-activeclass to the button. - For a responsive dock in iOS, add
<meta name="viewport" content="viewport-fit=cover">.