Skip to content

Tab

@Composable



fun Tab(
    spec: TabSpec, 
    selected: Boolean, 
    modifier: Modifier = Modifier, 
    elevateSelected: Boolean = false, 
    enabled: Boolean = spec.enabled, 
    texture: String = TabTextures.GAME, 
    variant: String = ThemeVariants.DEFAULT, 
    iconSpacing: Int = DEFAULT_ICON_SPACING, 
    onClick: (TabSpec) -> Unit
)

A single clickable tab button, rendering spec's icon/title and switching its themed texture state based on selected/hover/press. Used internally by TabContainer; use that (or the DSL/TabPanel variants) rather than calling this directly in most cases.