IndependentTabs

fun IndependentTabs(modifier: Modifier = Modifier, state: LazyListState = rememberLazyListState(), numberOfTabs: Int? = null, contentPadding: PaddingValues = PaddingValues(0.dp), space: Dp = OdsTheme.layout.gap.layout.M, tabs: LazyListScope.() -> Unit)

Independent tabs are a set of related tabs that are not sharing a container. They are used to display different content views. They are mutually exclusive, meaning only one tab can be selected at a time.

For more information visit the ODS Core Documentation

Independent Tab Sample

Parameters

modifier

An optional Modifier to be applied to the independent tabs container. Defaults to Modifier.

state

The state object to be used to control or observe the list's state. Defaults to rememberLazyListState.

numberOfTabs

The total number of tabs in the list. This is used for accessibility purposes to announce the number of items in the collection.

contentPadding

The padding to apply to the content of the list. Defaults to 0.dp.

space

The space between the tabs. Defaults to OdsTheme.layout.gap.layout.M.

tabs

The content of the list of tabs.