Compose Multiplatform

Jetpack Compose for Desktop and Web,一个用于 Kotlin 的现代 UI 框架,使构建高性能和漂亮的用户界面变得容易和愉快。「Jetpack Compose for Desktop, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.」

Github星跟踪图

official project
Latest release
Latest build

Compose Multiplatform

Compose Multiplatform is a declarative framework for sharing UIs across multiple platforms with Kotlin.
It is based on Jetpack Compose and developed by JetBrains and open-source contributors.

You can choose the platforms across which to share your UIs using Compose Multiplatform:

For example, you can share UIs between iOS and Android or Windows and MacOS.

Shared UIs of the iOS, Android, desktop, and web apps

iOS

iOS support is in Alpha. It may change incompatibly and require manual migration in the future.
We would appreciate your feedback on it in the public Slack channel #compose-ios.
If you face any issues, please report them on GitHub.

Compose Multiplatform shares most of its API with Jetpack Compose, the Android UI framework developed by Google.
You can use the same APIs to build user interfaces for both Android and iOS.

Since Compose is built on top of Kotlin Multiplatform,
you can easily access native APIs, such as the Camera API,
and embed complex native UI views, such as MKMapView.

Get started with Compose Multiplatform

Android

When Android is one of your targets, you can get the same experience for Android as if you were developing an Android app
using Jetpack Compose.

Get started with Compose Multiplatform

Desktop

Compose Multiplatform targets the JVM and supports high-performance hardware-accelerated UI rendering on all major desktop
platforms – macOS, Windows, and Linux.

It has desktop extensions for menus, keyboard shortcuts, window manipulation, and notification management.

Get started with Compose Multiplatform

We would appreciate your feedback on Compose Multiplatform in the public Slack channel #compose.

Web

Web support is Experimental and may be changed at any time. Use it only for evaluation purposes.
We would appreciate your feedback on it in the public Slack channel #compose-web.
If you face any issues, please report them on GitHub.

You can experiment with sharing your mobile or desktop UIs with the web. Compose for Web is based on Kotlin/Wasm,
the newest target for Kotlin Multiplatform projects. It allows Kotlin developers to run their code in the browser with
all the benefits that WebAssembly has to offer, such as good and predictable performance for your applications.

Get started with Compose for Web

Libraries

Compose HTML

Compose HTML is a library targeting Kotlin/JS that provides Composable building blocks
for creating web user interfaces with HTML and CSS.

Note that Compose HTML is not a multiplatform library. It can be used only with Kotlin/JS.

Learn more

概览

名称与所有者JetBrains/compose-multiplatform
主编程语言Kotlin
编程语言Kotlin (语言数: 10)
平台Linux, Mac, Windows
许可证Apache License 2.0
发布数339
最新版本名称v1.6.10-rc01 (发布于 )
第一版名称0.2.0-build127 (发布于 2020-11-20 07:54:28)
创建于2020-09-07 10:40:49
推送于2024-05-03 20:59:06
最后一次提交2024-05-03 22:59:03
星数14.7k
关注者数212
派生数1.1k
提交数2.2k
已启用问题?
问题数3258
打开的问题数1263
拉请求数1109
打开的拉请求数52
关闭的拉请求数130
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部