Skip to content
Theme UI
GitHub

NavLink

Link component for use in navigation

import { NavLink } from 'theme-ui'

Variants

NavLink variants can be defined in the theme.links object. By default the NavLink component will use styles defined in theme.links.nav.

// example theme variants
{
links: {
nav: {
px: 2,
py: 1,
textTransform: 'uppercase',
letterSpacing: '0.2em',
}
}
}
Edit the page on GitHub
Previous:
Container
Next:
Message