Link
Textlink oder Button-Link mit nativer href-Navigation und gemeinsamer ui.button-Gestaltung. 1.5.0: opt-in icon/iconPosition (ui.icon) und tone accent (Akzentfarbe des Themes).
Beispiele
Standard
Extern (neuer Tab)
Gedämpft
Unsichere URL → neutralisiert
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| text * | string | — | Text |
| href * | string | — | Ziel-URL |
| popupPreset | string: none | kunden-agb | "none" | Festes natives Popup |
| trigger | string | "" | Öffnet Dialog/Schublade mit Kennung (optional) |
| historyBack | boolean | false | Im Browserverlauf zurück |
| external | boolean | false | In neuem Tab (extern) |
| appearance | string: inline | button | "inline" | Darstellung |
| variant | string: primary | secondary | ghost | danger | "primary" | Button-Variante |
| size | string: sm | md | lg | "md" | Button-Groesse |
| tone | string: default | muted | accent | "default" | Ton |
| icon | string | "" | Icon (optional, z. B. arrow-right) |
| iconPosition | string: end | start | "end" | Icon-Position |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Events & Slots
Events:
⚡ navigate — im Surface per on: {<event>: {action, params}} verdrahtbar.
Stellschrauben (Komponenten-Tokens)
Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.
| Token | Default |
|---|---|
--link-color | var(--color-text-link) |
Genutzte Design-Tokens
color.action.primary-hovercolor.text.linkcolor.text.mutedduration.fasteasing.standardfocus.ring-colorfocus.ring-offsetfocus.ring-widthfont.family.defaultradius.smsize.05text.xs
LLM-Notizen
ui.link
Textlink mit URL-Whitelist; die echte href-Navigation bleibt immer die Rückfallebene.
Wann nutzen
- Für Verweise im Fließtext oder als eigenständigen Textlink.
- Eine Aktion ohne Navigationsziel ist
ui.button; ein Beleg-Markerui.inline-citation.
Wichtige Props
text* = Link-Texthref* = Ziel-URL (nur Whitelist-Quellen)external= in neuem Tab öffnen (extern)tone= default | muted (Default default)
Beispiel-Node
{ "definition": "ui.link", "props": { "text": "Zur Dokumentation", "href": "https://example.com/docs", "external": true } }
Hinweise
- Emittiert
navigate; auch mit Binding bleibt diehref-Navigation die Rückfallebene. - Ist
hrefnicht auf der Whitelist, greift der Fallback statt eines aktiven Links.