commonMain.DialogSlot.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of componental-compose-jvm Show documentation
Show all versions of componental-compose-jvm Show documentation
Kotlin Multiplatform library for componentization of Compose UI.
The newest version!
package de.halfbit.componental.compose
import androidx.compose.runtime.Composable
import de.halfbit.componental.router.slot.Slot
@Composable
public inline fun DialogSlot(
slot: Slot,
content: @Composable (child: C) -> Unit,
) {
val active = slot.active
if (active != null) {
content(active.child)
}
}