item

abstract fun item(selected: Boolean, onClick: () -> Unit, mainContent: @Composable () -> Unit, modifier: Modifier = Modifier, badge: @Composable () -> Unit? = null, supportContent: @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.