Skip to main content

Menu Bar

The MenuBar is a navigation component that contains up to one CTA Button and an array of links. The links are shown inline in larger viewports and in a dropdown in smaller viewports.

A Menu Bar can be added anywhere on a page, but it is also intended to replace the site navigation on content pages with no header.

Example

Variants

Use theicon above to preview
VariantDescriptionValues
linksArray of storefront links
CTAOptional CTA button
dropdownTextSelect label displayed when there is no current pageDefault is "Select Page"
backgroundColorEnum of theme background colors
  • background
  • primary
  • secondary
  • accent
  • muted
  • destructive
linkDirectionAlignment of the links in desktop
  • rowStart
  • rowEnd
  • rowCenter
paddingTopOption to control spacing above the menu bar
  • regular
  • extra
paddingBottomOption to control spacing below the menu bar
  • regular
  • extra

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides. Class overrides can be applied to all sub-components.