A navigation link element that you can use in your navigation sections, for example in the navbar. Just add a navlink
class to your link to style it as a navigation link.
We provide an is-active
modifier to mark a navigation link as active, and a is-disabled
modifier to mark a navigation link as disabled.
The navlink element will apply the styles defined in the links.nav
field of your theme configuration.
export default { links: { nav: { fontWeight: "bold", "&:hover": { color: "primary", }, "&.is-disabled": { opacity: "0.5", pointerEvents: "none", }, }, }, // ...other configuration };
Designed and maintained with by @jmjuanes.
Code is licensed under MIT, documentation under Creative Commons Attribution 4.0.