SegmentedGauge

fun SegmentedGauge(modifier: Modifier = Modifier, size: GaugeSize = GaugeDefaults.Size, type: GaugeTypeNormal? = null, customColor: Color = GaugeDefaults.Color, showIndicator: Boolean = true, description: @Composable FlowRowScope.() -> Unit)(source)

A five-segment read-only gauge used to represent qualitative levels (for example: Very low → Very high).

Parameters

modifier

Modifier applied to the gauge.

size

Size of the gauge; typically GaugeSize.Small or GaugeSize.Medium.

type

Optional gauge type that determines which segments are filled and the semantic color. When null, the gauge renders unfilled segments (neutral state).

customColor

Optional color override for filled segments. When Color.Unspecified, the semantic color from type is used.

showIndicator

toggle the visibility of the indicator.

description

Description of the gauge. if not enough space is available horizontally it'll be placed bellow the gauge.

See also