🌈 Create new beautiful Compose Gradients with our new wesite ->
Compose Component

SingleChoiceSegmentedButtonRow

Material Design segmented button A Layout to correctly position and size SegmentedButtons in a Row.

SingleChoiceSegmentedButtonRow social preview

SingleChoiceSegmentedButtonRow

Source set: Common
@Composable
public fun SingleChoiceSegmentedButtonRow(
    modifier: Modifier = Modifier,
    space: Dp = SegmentedButtonDefaults.BorderWidth,
    content: @Composable SingleChoiceSegmentedButtonRowScope.() -> Unit,
)

Parameters

modifier the Modifier to be applied to this row
space the dimension of the overlap between buttons. Should be equal to the stroke width used on the items.
content the content of this Segmented Button Row, typically a sequence of SegmentedButtons