Collection of theme-ui and external components.
created:3/15/2021
updated:3/15/2021
source lines:20
comments %:0

NavLink

Link component for use in navigation

NavLink variants can be defined in the

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

({ p }) => (
<Flex>
<NavLink href="#!" sx={{ p }}>
Home
</NavLink>
<NavLink href="#!" sx={{ p }}>
Blog
</NavLink>
<NavLink href="#!" sx={{ p }}>
About
</NavLink>
</Flex>
)

Controls

Name
Description
Default
Controls
p

Padding on top, left, bottom and right

ResponsiveValue<stringnumbersymbol, Required<Theme<TLengthStyledSystem>>>
-

A11y tests

Viewport