Method Link
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Link(string, string?, string?, string?, VNode?[]?, bool, string?, FiberEventBinding[]?, object?, RelativeRoutingType)
Renders a button whose activation requests navigation.
public static ComponentNode Link(string to, string? text = null, string? className = null, string? name = null, VNode?[]? children = null, bool replace = false, string? key = null, FiberEventBinding[]? events = null, object? state = null, RelativeRoutingType relative = RelativeRoutingType.Route)
Parameters
tostringAbsolute or route-relative navigation target.
textstringclassNamestringnamestringchildrenVNode[]replaceboolSelects replacement instead of push navigation.
keystringeventsFiberEventBinding[]Event bindings applied to the button, bound ahead of the navigation. A ClickedEventBinding that calls PreventDefault() keeps the click from navigating, as React Router's
Linkdoes for anonClickthat prevents the default.stateobjectStored on the new history entry, as React Router's
Linkstate.relativeRelativeRoutingTypeHow a relative
toresolves, as Relative.