Navigation

Navigation


Last updated: 7/17/21

The Navigation component is used as a persistant list of links to various pages on a website.

Structure

Use the base class pier-nav to wrap the elements inside of the Navigation. Use pier-nav__item-group to group links inside of the Navigation. Use pier-nav__item for first level links or wrap it in a parent element with the class pier-nav__item-container with a sibling element pier-nav__item-dropdown if the item has nested sub-items. Use either pier-nav__sub-item or pier-nav__sub-label inside the nested item dropdown. Follow the example closely below for proper navigation structure.

Navigation

Item
Sub-Item
Sub-Item
Item
Sub-Label
Sub-Item
Sub-Item
Item
Sub-Item
Sub-Item
Item

HTML markup

Dark

Use the base class pier-nav to wrap the elements inside of the Navigation. Use pier-nav__item-group to group links inside of the Navigation. Use pier-nav__item for first level links or wrap it in a parent element with the class pier-nav__item-container with a sibling element pier-nav__item-dropdown if the item has nested sub-items. Use either pier-nav__sub-item or pier-nav__sub-label inside the nested item dropdown. Follow the example closely below for proper navigation structure.

Navigation

Item
Sub-Item
Sub-Item
Item
Sub-Label
Sub-Item
Sub-Item
Item
Sub-Item
Sub-Item
Item

HTML markup


© 2021 Gumgum, Inc.