rLink
A reusable link component, which can act like link or button. When href prop is not set, the component renders as button. If it is set we use NuxtLinkLocale which automatically updates the url to current locale. For this to work you have to define specific route name for each locale, please refer to Localization section.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
href | String | '' | ❌ | Where link points to |
Slots
| Name | Description |
|---|---|
default | Link content |
Code Snippets
As button
vue
<RLink>Iam button</RLink>As link
vue
<RLink href="#">Iam link</RLink>