NavLink
Work in progress - this component is not yet ready for use.
Basic
NNavLink
is a component that renders a link to a page in your application. It is a wrapper around the NButton
and NuxtLink
component that adds some additional functionality.
refer to the NButton and NuxtLink documentation for more information on the props that can be passed to those components.
Variants & Colors
nav-link-{variant}-{color}
- add a variant to the navigation. The default variant is text-primary
.
nav-link-active-{variant}-{color}
- add a variant to the navigation when the link is active
. The default variant is text-primary
.
nav-link-inactive-{variant}-{color}
- add a variant to the navigation when the link is inactive
. The default variant is text-gray
.
Variant | Description |
---|---|
text | The text variant (default) |
solid | The solid variant. |
~ | The unstyle or base variant |
You can wrap the nav-link
component with a dark
class to force the component to use the dark variant always.