tab
inline fun <reified K : NavKey> tab(key: K, @StringRes label: Int, icon: ToolkitIcon, selectedIcon: ToolkitIcon = icon, topBar: TopBarStyle? = null, contentWidth: ContentWidth = ContentWidth.Default, badge: String? = null, noinline badgeText: @Composable () -> String?? = null, search: TabSearch? = null, @StringRes shortLabel: Int? = null, paneRole: PaneRole = PaneRole.None, noinline actions: @Composable RowScope.(K) -> Unit? = null, noinline fab: @Composable (K) -> Unit? = null, noinline fabs: @Composable (K) -> List<ToolkitFab>? = null, topBarScrollMode: TopBarScrollMode = TopBarScrollMode.Default, noinline content: @Composable (K) -> Unit)(source)
Adds a root of the shell. Tabs appear in the order they are added, and the first is where the app starts and where back ends before the app closes.
A tab with paneRole List shows a child with PaneRole.Detail beside it on wide windows, with a draggable separator, instead of pushing it over the tab.