Tab

fun TabGroupScope.Tab(key: TabKey, modifier: Modifier = Modifier, enabled: Boolean = true, indication: Indication = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, content: @Composable () -> Unit)

A single tab in a TabList.

Parameters

key

The unique identifier for this tab.

modifier

Modifier to be applied to the tab.

enabled

Whether the tab is enabled.

indication

The indication to be shown when the tab is interacted with.

interactionSource

The interaction source for the tab.

content

The content of the tab.