backgroundColor

@Composable
abstract fun backgroundColor(active: Boolean): State<Color>

Gets the background color dependant on if the item is active or not

Return

background color as a State

Parameters

active

true if the component/item is selected and false otherwise