Icon

@Composable
fun Icon(active: Boolean, activeContent: @Composable () -> Unit = { ActiveIcon() }, inactiveContent: @Composable () -> Unit? = null)

The default implementation of icons for Segmented Buttons.

Parameters

active

whether the button is activated or not.

activeContent

usually a checkmark icon of IconSize dimensions.

inactiveContent

typically an icon of IconSize. It shows only when the button is not checked.