commonMain.com.huanshankeji.compose.foundation.layout.Box.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-html-unified-common
Show all versions of compose-multiplatform-html-unified-common
Common wrappers of components (including layouts) and modifiers for Compose UI (Android, desktop (JVM), iOS, and web (Kotlin/Wasm)) and Compose HTML
The newest version!
package com.huanshankeji.compose.foundation.layout
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import com.huanshankeji.compose.ui.Alignment
import com.huanshankeji.compose.ui.Modifier
@Composable
expect fun Box(
modifier: Modifier = Modifier,
contentAlignment: Alignment = Alignment.TopStart,
content: @Composable BoxScope.() -> Unit
)
@Composable
expect fun Box(modifier: Modifier)
//@LayoutScopeMarker
@Immutable
expect interface BoxScope {
@Stable
open fun Modifier.align(alignment: Alignment): Modifier
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy