Method Link
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Link(string, string?, string?, string?, VNode?[]?, bool, string?)
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
tostringNavigation target path (absolute or relative).
textstringLink label text.
classNamestringCSS-like utility class string applied to the link element.
namestringElement name for query/debug.
childrenVNode[]Optional child nodes rendered inside the link.
replaceboolWhen true, replaces the current history entry instead of pushing.
keystringKey used to disambiguate siblings at the same position.
Returns
- ComponentNode
A ComponentNode rendering the link.