Kotlin Wrappers
This repository hosts a number of Kotlin wrappers for popular JavaScript libraries.
To learn more please refer to the API Reference.
Artifacts are published to Maven Central, see the corresponding README files for package coordinates.
All packages require JDK 11 to be installed.
Using In Your Projects
Use Kotlin Wrappers' version catalog.
Just declare kotlin-wrappers-catalog
in root settings.gradle.kts
and specify the modules you need:
dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
create("kotlinWrappers") {
val wrappersVersion = "2025.1.11"
from("org.jetbrains.kotlin-wrappers:kotlin-wrappers-catalog:$wrappersVersion")
}
}
}
dependencies {
jsMainImplementation(kotlinWrappers.emotion)
jsMainImplementation(kotlinWrappers.react)
jsMainImplementation(kotlinWrappers.reactDom)
jsMainImplementation(kotlinWrappers.tanstack.reactTable)
}
Examples
-
Internal examples
-
Building Web Applications with React and Kotlin/JS,
a tutorial by JetBrains.
-
An example of using react-table that shows how to use
react-table with hooks API.
-
An example of using Material UI.
-
ByteLegend: an open-source, real-world HTML5 MMORPG game.
Follow these examples to learn how to start developing your React apps with Kotlin. Good luck and have fun!
Contributing
Contributions to this project are welcome! Please see the open
issues or chat with us on
the #react channel in our
Slack.