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.