androidxCommonMain.com.huanshankeji.compose.material.TextField.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.ui.Modifier
@Composable
actual fun TextField(
value: String,
onValueChange: (String) -> Unit,
modifier: Modifier,
enabled: Boolean,
label: String?,
leadingIcon: @Composable (() -> Unit)?,
trailingIcon: @Composable (() -> Unit)?,
) =
androidx.compose.material.TextField(
value,
onValueChange,
modifier.platformModifier,
enabled = enabled,
label = label?.let { { Text(it) } },
leadingIcon = leadingIcon,
trailingIcon = trailingIcon
)