TabItem

fun TabItem(actionIcon: Int, modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, label: String? = null, helpText: String? = null, count: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, onActionClicked: () -> Unit = {}, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Deprecated

Use TabItem with ImageSource actionIcon

Replace with

TabItem(actionIcon = resourceImageSource(actionIcon))
fun TabItem(onClick: () -> Unit, modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, enabled: Boolean = true, helperContent: @Composable () -> Unit? = null, counter: @Composable () -> Unit? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, action: @Composable () -> Unit? = null, onClickLabel: String? = null, motion: Motion<TabItemMotionStyle> = rememberTabItemMotion(), content: @Composable () -> Unit)

Таб (Вкладка). Элемент, предназначенный для использования в Tabs. Может содержать контент в начале и в конце, основной текст, дополнительный текст, кнопку действия, счетчик.

Parameters

modifier

модификатор

style

стиль компонента TabItem

isSelected

выбран ли таб

enabled

включен ли таб

helperContent

дополнительный текст

counter

слот для счетчика Counter

startContent

контент в начале

endContent

контент в конце

action

слот для кнопки/иконки действия

onClickLabel

лейбл обработчика нажатия на таб

motion

объект анимации

content

основной контент


fun TabItem(modifier: Modifier = Modifier, style: TabItemStyle = LocalTabItemStyle.current, isSelected: Boolean = false, label: String? = null, helpText: String? = null, count: String? = null, startContent: @Composable () -> Unit? = null, endContent: @Composable () -> Unit? = null, actionIcon: ImageSource? = null, onActionClicked: () -> Unit = {}, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Deprecated

Use TabItem with onClick

Replace with

TabItem(onClick = {})

Таб (Вкладка). Элемент, предназначенный для использования в Tabs. Может содержать контент в начале и в конце, основной текст, дополнительный текст, кнопку действия, счетчик.

Parameters

modifier

модификатор

style

стиль компонента TabItem

isSelected

выбран ли таб

label

основной текст

helpText

дополнительный текст

count

текст счетчика Counter

startContent

контент в начале

endContent

контент в конце

actionIcon

источник иконки действия

onActionClicked

обработчик нажатия на иконку действия

interactionSource

источник взаимодействий InteractionSource