page

inline fun <reified K : NavKey> page(topBar: TopBarStyle? = null, paneRole: PaneRole = PaneRole.None, contentWidth: ContentWidth = ContentWidth.Default, noinline title: @Composable (K) -> String? = null, noinline actions: @Composable RowScope.(K) -> Unit? = null, transition: ScreenTransition? = null, noinline fab: @Composable (K) -> Unit? = null, noinline fabs: @Composable (K) -> List<ToolkitFab>? = null, noinline placeholder: @Composable () -> Unit? = null, topBarScrollMode: TopBarScrollMode = TopBarScrollMode.Default, backButton: Boolean = true, noinline content: @Composable (K) -> Unit)(source)

Adds a destination that covers the shell like an activity would.

With a title the shell draws the page's app bar and back button, and content only fills the body. Without one, content owns the whole page and draws its own frame, for pages that need tabs or a search field under their app bar.

backButton false leaves the arrow out of that app bar, for a task the person finishes with a button of its own; system back still closes the page unless content handles it.