elevation

@Composable
abstract fun elevation(enabled: Boolean, interactionSource: InteractionSource): State<Dp>

Contract to help build Button Elevation based on button's enabled and interactionSource.

Parameters

enabled
  • to decide if button is enabled.

interactionSource
  • InteractionSource for the given button.