Miuix is a shared UI component based on Compose Multiplatform.
Now Supported: Android / Desktop(JVM) / iOS / WasmJs / Js / macOS.
kotlin {
sourceSets {
commonMain.dependencies {
implementation("top.yukonga.miuix.kmp:miuix:<version>")
// Other dependencies...
}
// Other sourceSets...
}
// Other configurations...
}
@Composable
fun App() {
MiuixTheme(
colorScheme = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()
) {
// Other content...
}
}