Tab(label: String? = null, icon: String? = null, activeIcon: String? = null, badge: String? = null, active: Boolean? = null, classes: Set<String> = setOf(), init: (Tab.() -> Unit)? = null)
Creates a tab component.
label
- the label of the tab item
activeIcon
- the name of the icon when the tab is active
badge
- display a notification badge on top of the tab
active
- whether this tab is active on start
classes
- a set of CSS class names
init
- an initializer extension function
Constructor
Creates a tab component.