Jenga Tabs
A row of text tabs with an underline indicator under the selected tab.
Parameters
the index of the selected tab.
the tab titles.
called with the index of a tapped tab.
the Modifier for the tab row.
how the tabs are laid out; see JengaTabsArrangement. Defaults to the theme's arrangement, else JengaTabsArrangement.Fill.
indices of tabs that show a small dot after their label (e.g. needs attention).
the tab label text style.
the minimum tab height; defaults to the theme's value, else JengaTabsDefaults.MinHeight.
gap between tabs with JengaTabsArrangement.Start.
padding around the row of tabs.
the color set; defaults to JengaTabsDefaults.colors.
the label text style of the selected tab; defaults to textStyle with the theme's JengaTabsStyle.selectedTextStyle merged on top.
Samples
JengaTabs(
selectedIndex = 0,
tabs = listOf(
"Upcoming",
"Past",
),
onSelect = { },
)