Table of Contents

Method Outlet

Namespace
Velvet
Assembly
Velvet.Docs.dll

Outlet(object?, string?)

Renders the matched child route component of a nested route at this position, and nothing at all when the match chain does not reach this depth. Emits no element of its own: the route's own output takes this position in the parent's child list.

public static ComponentNode Outlet(object? context = null, string? key = null)

Parameters

context object

Optional value supplied to the rendered child route, consumed by Hooks.UseOutletContext.

key string

Key used to disambiguate siblings at the same position.

Returns

ComponentNode

The created ComponentNode.