tabIndicatorOffset

abstract fun Modifier.tabIndicatorOffset(selectedTabIndex: Int, matchContentSize: Boolean = false): Modifier

A Modifier that follows the default offset and animation

Parameters

selectedTabIndex

the index of the current selected tab

matchContentSize

this modifier can also animate the width of the indicator \ to match the content size of the tab.