Table of Contents

Method Link

Namespace
Velvet
Assembly
Velvet.Docs.dll

Clickable navigation primitive. Navigates to to via the active Router on click. The target may be absolute or relative (resolved against the current location).

public static ComponentNode Link(string to, string? text = null, string? className = null, string? name = null, VNode?[]? children = null, bool replace = false, string? key = null)

Parameters

to string

Navigation target path (absolute or relative).

text string

Link label text.

className string

CSS-like utility class string applied to the link element.

name string

Element name for query/debug.

children VNode[]

Optional child nodes rendered inside the link.

replace bool

When true, replaces the current history entry instead of pushing.

key string

Key used to disambiguate siblings at the same position.

Returns

ComponentNode

A ComponentNode rendering the link.