Indicator

fun Indicator(shape: Shape, enabled: Boolean, modifier: Modifier = Modifier)(source)

Default selection indicator: a box clipped to shape with an animated background and border.

Pass this, or a custom composable with the same signature, to the indicatorContent parameter of SegmentedControl.Horizontal or SegmentedControl.Vertical.

Parameters

shape

Clip shape for both the fill and the border.

modifier

Additional modifier applied to the Box.