shellGraph

fun shellGraph(@StringRes appTitle: Int, appIcon: ToolkitIcon? = null, defaults: NavigationDefaults = NavigationDefaults(), builder: ShellGraphBuilder.() -> Unit): ShellGraph(source)

Builds a ShellGraph: an app's tabs, children, pages, drawer, overflow menu, start screens and deep links.

val graph = shellGraph(appTitle = R.string.app_name) {
tab(HomeRoute, R.string.home, ToolkitIcon.Vector(Icons.Outlined.Home)) { HomeScreen() }
child<ItemRoute>(title = { it.name }) { ItemScreen(it) }
drawer { settings(); spacer(); link(HelpRoute, R.string.help, ToolkitIcon.Vector(Icons.Outlined.Help)) }
}

:library:apptoolkit's toolkitGraph { } wraps this and adds the Toolkit's own pages.