Page navigation
Use a styled native anchor to reach another route.
Components / Navigation
A styled native anchor that preserves browser navigation behavior.
npx @getweini/cli@latest add linkUse a styled native anchor to reach another route.
Link to a separate site with clear destination text.
<Link href="/reports">
View reports
</Link>Use a descriptive label that still makes sense outside its paragraph.
<script setup lang="ts">
import Link from './components/ui/link/Link.vue'
</script>
<template>
<p>Read the <Link href="/guides/export">export guide</Link> before downloading.</p>
</template>A muted variant can sit beside a primary form action.
<script setup lang="ts">
import Link from './components/ui/link/Link.vue'
</script>
<template>
<Link href="/account/help" variant="muted" size="sm">Need help signing in?</Link>
</template>The most useful props, models, slots, events, and methods for this component.
| Name | Type | Default or requirement |
|---|---|---|
href | string | required |
variant | default | muted | plain | default |
size | sm | md | lg | md |
Native anchor attributes and events pass through. Router integrations can provide href and navigation through their custom-link mode.