TabRowScope
interface TabRowScope
TabRowScope is used to provide the doesTabRowHaveFocus state to the Tab composable
Summary
Extension functions |
|
|---|---|
Unit |
@ComposableMaterial Design tab. |
Public properties
Extension functions
Tab
@Composable
fun TabRowScope.Tab(
selected: Boolean,
onFocus: () -> Unit,
modifier: Modifier = Modifier,
onClick: () -> Unit = {},
enabled: Boolean = true,
colors: TabColors = TabDefaults.pillIndicatorTabColors(),
interactionSource: MutableInteractionSource? = null,
content: @Composable RowScope.() -> Unit
): Unit
Material Design tab.
A default Tab, also known as a Primary Navigation Tab. Tabs organize content across different screens, data sets, and other interactions.
This should typically be used inside of a TabRow, see the corresponding documentation for example usage.
| Parameters | |
|---|---|
selected: Boolean |
whether this tab is selected or not |
onFocus: () -> Unit |
called when this tab is focused |
modifier: Modifier = Modifier |
the |
onClick: () -> Unit = {} |
called when this tab is clicked (with D-Pad Center) |
enabled: Boolean = true |
controls the enabled state of this tab. When |
colors: TabColors = TabDefaults.pillIndicatorTabColors() |
these will be used by the tab when in different states (focused, selected, etc.) |
interactionSource: MutableInteractionSource? = null |
an optional hoisted |
content: @Composable RowScope.() -> Unit |
content of the |