shard_home

Function shard_home 

Source
pub fn shard_home() -> ShardHomeBuilder
Expand description

§shard_home

Provide a router controller and render shard UI rooted at the active destination.

§Usage

Mount the root route for an app shell and optionally render custom chrome around router_outlet().

§Parameters

  • root — initial destination used when controller is omitted
  • controller — optional external router controller state
  • child — optional shell content; defaults to router_outlet()

§Examples

use tessera_ui::router::shard_home;

shard_home().root(DemoDestination);