androidx.compose.material3
TabIndicatorScope
Interface
No hand-written docs yet.
Scope for the composable used to render a Tab indicator, this can be used for more complex indicators requiring layout information about the tabs like TabRowDefaults.PrimaryIndicator and TabRowDefaults.SecondaryIndicator
interface TabIndicatorScope
Used by
Parameters that take a TabIndicatorScope.
PrimaryScrollableTabRow(indicator)PrimaryTabRow(indicator)SecondaryScrollableTabRow(indicator)SecondaryTabRow(indicator)
Functions
tabIndicatorLayout
fun Modifier.tabIndicatorLayout(
measure: MeasureScope.(Measurable, Constraints, List<TabPosition>) -> MeasureResult,
): Modifier
A layout modifier that provides tab positions, this can be used to animate and layout a TabIndicator depending on size, position, and content size of each Tab.
tabIndicatorOffset
fun Modifier.tabIndicatorOffset(
selectedTabIndex: Int,
matchContentSize: Boolean = false,
): Modifier
A Modifier that follows the default offset and animation
Library docs
Scope for the composable used to render a Tab indicator, this can be used for more complex
indicators requiring layout information about the tabs like TabRowDefaults.PrimaryIndicator and
TabRowDefaults.SecondaryIndicator