Text

data class Text<T>(val key: T, val label: String, val interactionSource: MutableInteractionSource? = null) : SegmentedControlItem<T>

A text item that can be displayed in a segmented control.

Parameters

key

Unique identifier for each item in the group list.

label

The label of the segmented control item.

interactionSource

The interaction source for the item.

Constructors

Link copied to clipboard
constructor(key: T, label: String, interactionSource: MutableInteractionSource? = null)

Properties

Link copied to clipboard
open override val interactionSource: MutableInteractionSource? = null
Link copied to clipboard
open override val key: T
Link copied to clipboard