Skip to content

The top nav component consists of two main components that work together:

import { TopNav, TopNavItem } from '@cimpress-ui/react';

Top nav renders a navigation landmark.

Displays horizontal navigation, typically below the app header.

See top nav usage guidelines.

TopNavProps
ReactNode

The contents of the top navigation. Must be one or more of <TopNavItem>.

Renders a single navigation item within TopNav.

TopNavItemProps
StringLikeChildren

The text to display as the navigation item label.

string

A URL to link to.

boolean

Whether the navigation item represents the current page.

undefined

Options for the configured client side router.

string

Hints at the human language of the linked URL. SeeMDN.

HTMLAttributeAnchorTarget

The target window for the link. See MDN.

string

The relationship between the linked resource and the current page. See MDN.

string | boolean

Causes the browser to download the linked URL. A string may be provided to suggest a file name. See MDN.

string

A space-separated list of URLs to ping when the link is followed. See MDN.

HTMLAttributeReferrerPolicy

How much of the referrer to send when following the link. See MDN.