androidxCommonMain.com.huanshankeji.compose.material.Button.androidxCommon.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
import androidx.compose.runtime.Composable
import com.huanshankeji.compose.foundation.layout.RowScope
import com.huanshankeji.compose.ui.Modifier
@Composable
actual fun Button(
onClick: () -> Unit,
modifier: Modifier,
content: @Composable RowScope.() -> Unit
) =
androidx.compose.material.Button(onClick, modifier.platformModifier) {
RowScope.Impl(this).content()
}
@Composable
actual fun OutlinedButton(
onClick: () -> Unit,
modifier: Modifier,
content: @Composable RowScope.() -> Unit
) =
androidx.compose.material.OutlinedButton(onClick, modifier.platformModifier) {
RowScope.Impl(this).content()
}
@Composable
actual fun TextButton(
onClick: () -> Unit,
modifier: Modifier,
content: @Composable RowScope.() -> Unit
) =
androidx.compose.material.TextButton(onClick, modifier.platformModifier) {
RowScope.Impl(this).content()
}