commonMain.com.huanshankeji.compose.material.ext.Button.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-material-jvm Show documentation
Show all versions of compose-multiplatform-material-jvm Show documentation
Material Design component wrappers for Compose Multiplatform (desktop/Android and web)
The newest version!
package com.huanshankeji.compose.material.ext
import androidx.compose.runtime.Composable
import com.huanshankeji.compose.ui.Modifier
@Composable
expect fun Button(
onClick: () -> Unit,
buttonType: ButtonType = ButtonType.Contained,
modifier: Modifier = Modifier,
content: @Composable ButtonScope.() -> Unit
)
expect /*value*/ class ButtonScope {
@Composable
fun Label(text: String)
}
enum class ButtonType {
Contained, Outlined, Text
}