navigation — wyrd.component.link

Link

Inline navigation primitive that uses native web anchors and emits a canonical press event for host runtimes without native navigation.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
inline state: default
Usage
import { WyrdLink } from "@wyrd-company/react";

<WyrdLink href="/docs" content="Read the docs" />

// events: onPress
external state: default
Usage
import { WyrdLink } from "@wyrd-company/react";

<WyrdLink href="https://github.com/wyrd-company" target="blank" content="View Wyrd Company on GitHub" />

// events: onPress
relative state: default
Usage
import { WyrdLink } from "@wyrd-company/react";

<WyrdLink href="/settings" content="Account settings" />

// events: onPress
02

Properties

NameTypeDefaultSummary
href string undefined Navigation destination URL.
target self | blank self Navigation browsing context; blank web links also set noopener noreferrer.
03

Slots & events

SlotCardinalityAcceptsSummary
content exactly-one text Visible link text and accessible-name source.
EventPayloadSummary
press href Canonical activation event emitted with the destination href when the link is activated.
04

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
color color.primary
color-hover color.primary-hover
05

States

StateSourceSummary
default platform Inline link in normal text flow.
hover interaction Pointer hover state on hover-capable devices.
focus-visible platform Keyboard-visible focus state.
06

Accessibility

From the contract's accessibility obligations. Role link; Content slot provides the accessible name.

  • Enter activates the link.
  • Web projections use a native anchor; Flutter exposes link semantics.
  • Target blank web links set rel="noopener noreferrer".
  • Verified under: rtl, reduced-motion, cvd-deuteranopia, text-expansion.
07

SDUI

Status: serializable. Link serializes its href, target, content text, and optional press binding for non-web hosts.

SerializableMembers
Propertieshref, target
Slotscontent
Eventspress
The Wyrding Way — a contract-first design system. © Wyrd Company