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
contextobjectOptional value supplied to the rendered child route, consumed by
Hooks.UseOutletContext.keystringKey used to disambiguate siblings at the same position.
Returns
- ComponentNode
The created ComponentNode.