WlLink
Accessible links with an optional application-provided router adapter.
Change props to see the result: the example and code use the same settings. “Reset” restores the initial values.
Settings
Opens a new tab with a safe rel and an accessible hint.
Props href, to, pt, tone, models, handlers and slots can be edited in the SFC. See their descriptions in API.
Example
Focus: outside the example · pointer: outside the example
Explore the live example and copy its Vue SFC into your application. Settings on the left can be combined.
Code for your application
Vue SFC · current settings
<script setup lang="ts">
import { WlLink } from "legato-ui";
</script>
<template>
<div class="wl-stack" data-space="md">
<WlLink href="?view=docs" >{{ "Read the documentation" }}</WlLink>
<WlLink href="https://github.com/whitewolf06/legato-ui" external>{{ "Open the repository" }}</WlLink>
</div>
</template>Native and application links
Use native href links or supply a RouterLink-compatible adapter through WlConfig.
Vue SFC · additional example
<script setup lang="ts">
import { WlLink } from "legato-ui";
</script>
<template>
<div class="wl-stack" data-space="md">
<WlLink href="?view=docs" disabled>{{ "Read the documentation" }}</WlLink>
<WlLink href="https://github.com/whitewolf06/legato-ui" external>{{ "Open the repository" }}</WlLink>
</div>
</template>