utils/link-tag
Link Tag
Preview
Prerequisites
- Optional — gracefully falls back to a plain <a> when vue-router isn't installed.
Component
Usage
API
| Prop | Type | Default | Description |
|---|---|---|---|
| href | string | ""empty | URL or path to navigate to. |
| noLink | boolean | false | Render a <div> instead of a link. |
| external | boolean | false | Treat href as an external URL — always a plain <a>. |
| newTab | boolean | false | Open in a new tab (sets target="_blank"). |
| attributes | Record<string, unknown> | required | Extra attributes forwarded to the rendered element. |