TabContent

fun TabContent(scope: NutrientTabBarTabScope, modifier: Modifier = Modifier, closeButton: @Composable NutrientTabBarTabScope.() -> Unit = { CloseButton(this) })

The stock tab content: the title, middle-ellipsized to one line, and a close button when the tab is closeable. Call it from a custom tabContent slot to decorate the stock look rather than replace it.

Parameters

scope

The scope the bar passed to the slot.

modifier

The Modifier for the content row.

closeButton

What to draw at the end of a closeable tab, the stock CloseButton by default. Pass a CloseButton with your own icon, tint or padding to keep its tap handling, or any composable that calls NutrientTabBarTabScope.closeTab itself. Not composed for tabs that aren't closeable.