TabButton

fun TabButton(@DrawableRes drawableResId: Int, text: String, selected: Boolean, modifier: Modifier = Modifier, style: TabButtonStyle = TabButtonStyle.Normal, onClick: () -> Unit = {})

A button that represents a tab in a tab layout.

Parameters

drawableResId

The icon to display on the tab.

text

The text to display below the icon.

selected

Whether the tab is currently selected.

style

The style of the tab button. Defaults to TabButtonStyle.Normal.

onClick

The action to perform when the tab is clicked. Link to the figma @link https://www.figma.com/file/BBwB8s5ytRVPoY3547nV4k/Dash-UI?type=design&node-id=3063-38710&mode=design&t=IYhqz5mrB4vhEUGn-4