Table of Contents

Method Outlet

Namespace
Velvet
Assembly
Velvet.Docs.dll

Outlet(object?, string?)

Placeholder that renders the matched child route component of a nested route at this position.

public static OutletNode 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

OutletNode

The created OutletNode.