Reference

Link

Renders an app-router anchor with typed `href` support and navigation runtime attributes. In JSX it returns an anchor element compatible with the mreact runtime; during server streaming it can also write directly to an `HtmlSink`. Unsafe URL attribute values are dropped during rendering.

Signature

function Link<Href>(props: LinkProps<Href>): ReactCompatElement
function Link(sink: HtmlSink, props: LinkProps<string>): void