Nav Button Link

A link (<a>) for navigation bar

import '@wevisdemo/ui/styles/nav-button-link.css';
import WvNavButtonLink from '@wevisdemo/ui/{react,vue,svelte}/nav-button-link';
<WvNavButtonLink href="https://github.com/wevisdemo/design-systems">
  GitHub
</WvNavButtonLink>

Props

NameTypeDefault
hrefstring
targetstring'_blank'
relstring'nofollow noopener noreferrer'
darkbooleanfalse

Slot / Children

Button content

Examples

With dark theme

<WvNavButtonLink href="https://github.com/wevisdemo/design-systems" dark>
  GitHub
</WvNavButtonLink>

Internal link

Normally, the button link has a default props for target and rel suitable for making an external link. You can set them both to undefined to make an internal link.

<WvNavButtonLink href="https://wevis.info/" target={undefined} rel={undefined}>
  WeVis
</WvNavButtonLink>