twoLine

abstract fun twoLine(title: String, subtitle: String, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier): SegmentedButtonItem(source)

Segment showing a bold primary line and a smaller caption below it. Both lines are single-line, truncated with ellipsis.

Two line segment

Parameters

subtitle
selected

Whether this segment is currently selected.

onClick

Called when the user taps this segment.

modifier

Modifier applied to this segment's touch-target box.