commonMain.com.bselzer.ktx.compose.ui.layout.merge.ButtonElevationMerger.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-ui-layout-jvm Show documentation
Show all versions of compose-ui-layout-jvm Show documentation
Base extensions for laying out Compose Multiplatform UI.
package com.bselzer.ktx.compose.ui.layout.merge
import androidx.compose.foundation.interaction.InteractionSource
import androidx.compose.material.ButtonElevation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
class ButtonElevationMerger : ComponentMerger {
override val default: ButtonElevation = Default
companion object {
@Stable
val Default = object : ButtonElevation {
@Composable
override fun elevation(enabled: Boolean, interactionSource: InteractionSource): State = mutableStateOf(0.dp)
}
}
}