Function

selected

Defines a [Style] to be applied when the component is [StyleState.

selected

Common
@ExperimentalFoundationStyleApi
fun StyleScope.selected(value: Style)

Defines a Style to be applied when the component is StyleState.isSelected is true. The properties within the provided value Style will override or merge with the base style of the component when a toggle interaction is detected.