Table of Contents

Method NavLink

Namespace
Velvet
Assembly
Velvet.Docs.dll
public static ComponentNode NavLink(string to, string activeClass, string? text = null, string? className = null, string? name = null, VNode?[]? children = null, bool end = false, bool replace = false, bool caseSensitive = false, string? key = null)

Parameters

to string

Absolute or route-relative navigation target. A relative one takes the same resolution for the active comparison that it takes to navigate.

activeClass string

Appended to className while non-empty and active.

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

Restricts active state to an exact path match instead of a segment-prefix match.

replace bool

Selects replacement instead of push navigation.

caseSensitive bool

Uses ordinal matching instead of the case-insensitive default.

key string

Returns

ComponentNode