Navigation

Import

import Navigation from '@politico/interactive-style/src/components/Navigation';
// or
import { Navigation } from '@politico/interactive-style';

Props

NameTypeDefaultDescription
site'''magazine'''The site this page belongs to (blank for the core site)
theme'light''dark'White background or black background (the default depends on the site chosen)

CSS

NameGlobal ClassDescription
rootPibNavigation-rootStyles applied to root element
containerPibNavigation-containerStyles applied to container element
brandingPibNavigation-brandingStyles applied to the name of the site
homePibNavigation-homeStyles applied to the home link
linksPibNavigation-linksStyles applied to the container of the links to other properties

Demos

Magazine Navigation

If you're working on a Magazine piece set the "site" to "magazine".

Dark Mode

You can switch between "light" and "dark" themes using the theme prop. Note that the default theme for the base nav is "light", but the default theme for the Magazine nav is "dark". Try changing the site to "magazine" and the "theme" to "light".