addTab

fun addTab(id: String, label: String? = null, icon: IconSchema? = null, badgeText: String? = null)

Declares one tab of a Tabs row.

Parameters

id

Identifier matched against selectedTabId and carried by onTabItemClick when this tab is tapped.

label

Text shown for this tab. Defaults to none.

icon

Icon shown for this tab. Defaults to none.

badgeText

Badge attached to the icon (or the label when there's no icon) — empty string for a dot badge, any other value as text, null for no badge. Defaults to none.