compose-multiplatform (JetBrains/compose-multiplatform)

Searching Database…

What is this?A declarative UI framework from JetBrains, built on top of Jetpack Compose, for sharing one UI codebase across platforms in Kotlin.
So is it basically Jetpack Compose that also runs off Android?Essentially yes: it shares most of its API with Jetpack Compose, Google's Android UI framework, so you write the same Compose code for Android and iOS instead of learning a separate UI system per platform.
What does setting up a project look like?The README links a getting-started guide per target — iOS, Android, desktop and web each have their own; projects are built with the standard Kotlin Multiplatform Gradle tooling.
Do I need to be an Android developer to use it?You write Kotlin, and Android work is identical to Jetpack Compose development. Since the APIs are shared, existing Compose knowledge transfers directly to the other targets.
Is the web target ready for production?No — web is explicitly in Beta, while iOS, Android and desktop are presented as ready. Web feedback is collected via the #compose-web Slack channel and issues go to YouTrack.
Which platforms can one UI codebase cover?iOS, Android, desktop (Windows, macOS, and Linux) and web. Web is the only target still marked Beta.
What does the desktop target give me beyond the mobile UI model?It runs on the JVM with high-performance hardware-accelerated rendering on macOS, Windows and Linux, and adds desktop-only extensions for menus, keyboard shortcuts, window manipulation and notification management.
Can I still call native platform APIs, like the camera or native map views?Yes. Compose sits on top of Kotlin Multiplatform, so you can access native APIs such as the Camera API and embed complex native UI views like MKMapView in your shared UI.
How does the web target actually run my code?Kotlin is compiled to WebAssembly via Kotlin/Wasm, so the app runs in the browser with WebAssembly's benefits, such as good and predictable performance, rather than being rewritten in JavaScript.
What is Compose HTML and how is it different?A separate library targeting Kotlin/JS that provides Composable building blocks for web UIs made of HTML and CSS. Unlike Compose Multiplatform it is not multiplatform — it works only with Kotlin/JS.
What are similar projects?whisker, gkd, Avalonia, slint, flutter, animeko, uno, kotlin
Creator
JetBrains
Size
283.3 MB
Stars
19.5K
Age
6y
Commits · 90 Days