Table of Contents

Method Link

Namespace
Velvet
Assembly
Velvet.Docs.dll

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

to string

Absolute or route-relative navigation target.

text string
className string
name string
children VNode[]
replace bool

Selects replacement instead of push navigation.

key string
events FiberEventBinding[]

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 Link does for an onClick that prevents the default.

state object

Stored on the new history entry, as React Router's Link state.

relative RelativeRoutingType

How a relative to resolves, as Relative.

Returns

ComponentNode