SusLink

Inline text link — Href, router Route, or custom click.
Package
SusKit · Atoms (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Text | Prop<string> | "" | v-model |
Href | Prop<string> | "" | v-model |
Route | Prop<string> | "" | v-model |
Underline | Prop<bool> | true | v-model |
Color | Prop<string> | "primary" | v-model |
Size | Prop<string> | "inherit" | v-model |
External | Prop<bool> | false | v-model |
Slots
No slots.
Events
| Name | Field | Payload |
|---|---|---|
Click | OnClick | — |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
keyboard-focussus-linksus-link__textsus-link--dangersus-link--externalsus-link--no-underlinesus-link--secondarysus-link--size-largesus-link--size-smallsus-link--size-x-largeunity-labelunity-text-element
Usage
xml
<template>
<sus:SusLink Text="Open docs"
Href="https://example.com/docs"
Color="primary"
Underline="true"
External="true"
@click="OnNav" />
</template>
<script>
void OnNav() { /* optional extra handling */ }
</script>csharp
var link = new SusLink();
link.Text.Value = "Profile";
link.Route.Value = "/profile";
link.Color.Value = "primary";
link.OnClick += () => { /* … */ };Notes
- Prefer
Routefor in-app navigation (sus-router); useHref+Externalfor outside URLs. Size:inheritfollows surrounding text; otherwise use kit size tokens.