TabBarScope

interface TabBarScope

TabBarScope is a scope that provides the item function to the TabBar.

Functions

Link copied to clipboard
open fun item(text: String, selected: Boolean, modifier: Modifier = Modifier, icon: @Composable () -> Painter? = null, unreadCount: Int = 0)

item is a function that provides the item to the TabBar.

open fun item(text: String, selected: Boolean, modifier: Modifier = Modifier, unreadCount: Int = 0, itemIcon: @Composable () -> Unit?)

New item overload that accepts arbitrary Composable content as the icon/leading. Use this to pass custom visuals (e.g., vector icons, avatars, animated content).