Function

selected

Defines a Style to be applied when the component is StyleState.isSelected is true.

selected

Source set: Common
public fun StyleStateScope.selected(block: () -> Unit)

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

Parameters

block The Style to apply on press.

Content updated: