Menu
JetBrains previews Jetpack Compose for Web

JetBrains previews Jetpack Compose for Web

Jetpack Compose for Web brings Google’s toolkit for building reactive user interfaces with Kotlin to the web browser.

Credit: IDG

JetBrains is offering its first technology preview of Jetpack Compose for the Web, which brings Google’s Kotlin toolkit for building reactive user interfaces to the web.

Introduced on May 3, Jetpack Compose for Web works on top of Kotlin Multiplatform, enabling developers to build an application for Android, the desktop, or web using Jetpack Compose as the UI framework, all within the same project. Kotlin Multiplatform fosters sharing of platform-agnostic functionality such as business logic through common code, while still enabling developers to implement platform-specific functionality.

Jetpack Compose for Web follows JetBrains’ Compose for Desktop, for building reactive desktop UIs for Kotlin, also still in early development, with a 1.0 release planned. With the Jetpack Compose for Web preview, developers can reuse all core Compose state management concepts across platforms.

The preview currently does not allow developers to directly reuse existing widgets, but the Kotlin Multiplatform expect/actual mechanism can be used to build common widgets with implementations for all three platforms.

The Jetpack Compose for Web preview includes two types of APIs for designing user interfaces in Kotlin: a composable DOM API, to control the document object model, and a web implementation of widgets from Jetpack Compose for Desktop and Jetpack Compose for Android.

JetBrains also is designing a type-safe DSL for style sheets, through which CSS rules can be expressed in Kotlin. Developers can modify styles based on the state of a Compose application, Jetbrains said.

Instructions on getting started with Jetpack Compose for Web can be found on GitHub.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags GoogleKotlin

Events

Featured

Slideshows

Channel kicks 2021 into gear as After Hours returns to Auckland

Channel kicks 2021 into gear as After Hours returns to Auckland

After Hours made a welcome return to the channel social calendar with a bumper crowd of partners, distributors and vendors descending on The Pantry at Park Hyatt in Auckland to kick-start 2021.

Channel kicks 2021 into gear as After Hours returns to Auckland
The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

Hundreds of leaders from the New Zealand IT industry gathered at the Hilton in Auckland on 17 November to celebrate the finest female talent in the Kiwi channel and recognise the winners of the Reseller News Women in ICT Awards (WIICTA) 2020.

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards
Show Comments