custom
Segment with fully custom content. Use this when no other scope variant fits — for example, when segment appearance must vary with the selected value (e.g. a colour-coded energy-rating scale).
The content lambda is centred inside the segment's touch target. Enabled state and indicator shape are still controlled by the enclosing SegmentedControl.
Accessibility: content must produce at least one composable that contributes text semantics (e.g. com.adevinta.spark.components.text.Text, or a composable with a non-null contentDescription). If the content is purely visual, add a label via modifier = Modifier.semantics { contentDescription = "…" }.
Parameters
Whether this segment is currently selected.
Called when the user taps this segment.
Modifier applied to this segment's touch-target box.
Colour of the tap ripple. Defaults to com.adevinta.spark.tokens.SparkColors.outlineHigh; override to match a segment's custom background.
Composable content rendered inside the segment.