NutrientTabBarTabScope

What a NutrientTabBar hands its tabContent slot: the tab to render, its state, and the bar's styling.

The bar itself draws the tab's background, shape and selection fill and handles taps and drag-reorder, so the content only has to draw what goes inside the tab. NutrientTabBarDefaults.TabContent is the stock content.

Properties

Link copied to clipboard
abstract val colors: TabBarColors

The bar's colors.

Link copied to clipboard

The bar's dimensions.

Link copied to clipboard
abstract val isCloseable: Boolean

Whether the bar's close mode gives tab a close button.

Link copied to clipboard
abstract val isSelected: Boolean

Whether tab is the selected tab.

Link copied to clipboard
abstract val tab: NutrientTabBarTab

The tab being rendered.

Functions

Link copied to clipboard
abstract fun closeTab()

Closes tab, the way the stock close button does. Has no effect when isCloseable is false.