item
abstract fun item(selected: Boolean, onClick: () -> Unit, mainContent: @Composable () -> Unit, modifier: Modifier = Modifier, badge: @Composable () -> Unit? = null, supportContent: @Composable () -> Unit? = null, extraContent: @Composable () -> Unit? = null)
Add an item to the TabBar.
Parameters
selected
Whether the item is selected.
onClick
The click event of the item.
mainContent
The main content of the item.
modifier
The modifier of the item.
badge
The badge of the item.
supportContent
The support content of the item.
extraContent
The extra content shown in the expanded area below the tab row. When the selected item's extraContent is non-null, the expanded area uses TabBar's extraContentHeight; otherwise it collapses to 0dp.