Skip to content

Kotlin wrappers for popular JavaScript libraries

License

Notifications You must be signed in to change notification settings

JetBrains/kotlin-wrappers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JetBrains team project CI Maven Central Kotlin Slack channel

Kotlin Wrappers

This repository hosts a number of Kotlin wrappers for popular JavaScript libraries.

To learn more please refer to the API Reference.

Library name API README Note Version
kotlin-actions-toolkit API README Maven Central
kotlin-browser API README Maven Central
kotlin-cesium-engine API README Maven Central
kotlin-cesium-widgets API README Maven Central
kotlin-css API README Maven Central
kotlin-cssom-core API README Maven Central
kotlin-csstype API README guide Maven Central
kotlin-electron API README Maven Central
kotlin-emotion API README guide Maven Central
kotlin-extensions API README archived Maven Central
kotlin-js API README Maven Central
kotlin-mui-material API README Maven Central
kotlin-mui-base API README Maven Central
kotlin-mui-icons-material API README Maven Central
kotlin-mui-lab API README Maven Central
kotlin-mui-system API README Maven Central
kotlin-muix-date-pickers API README Maven Central
kotlin-muix-tree-view API README Maven Central
kotlin-node API README Maven Central
kotlin-popperjs-core API README Maven Central
kotlin-preact-signals-core API README Maven Central
kotlin-preact-signals-react API README Maven Central
kotlin-react API README Maven Central
kotlin-react-beautiful-dnd API README Maven Central
kotlin-react-core API README Maven Central
kotlin-react-dom API README Maven Central
kotlin-react-dom-legacy API README archived Maven Central
kotlin-react-dom-test-utils API README Maven Central
kotlin-react-legacy API README archived Maven Central
kotlin-react-router API README Maven Central
kotlin-react-router-dom API README Maven Central
kotlin-react-popper API README Maven Central
kotlin-react-select API README Maven Central
kotlin-react-use API README Maven Central
kotlin-remix-run-router API README Maven Central
kotlin-styled-next API README Maven Central
kotlin-tanstack-query-core API README Maven Central
kotlin-tanstack-react-query API README Maven Central
kotlin-tanstack-react-query-devtools API README Maven Central
kotlin-tanstack-react-table API README Maven Central
kotlin-tanstack-react-virtual API README Maven Central
kotlin-tanstack-table-core API README Maven Central
kotlin-tanstack-virtual-core API README Maven Central
kotlin-typescript API README Maven Central
kotlin-web API README Maven Central
kotlin-wrappers-bom API README Maven Central

Artifacts are published to Maven Central, see the corresponding README files for package coordinates.

All packages require JDK 8 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:

// root `settings.gradle.kts`
dependencyResolutionManagement {
    repositories {
        mavenCentral()
    }

    versionCatalogs {
        create("libs") {
            val wrappersVersion = "0.0.1-pre.803"
            from("org.jetbrains.kotlin-wrappers:kotlin-wrappers-catalog:$wrappersVersion")
        }
    }
}

// build.gradle.kts
dependencies {
    jsMainImplementation(libs.wrappers.emotion)
    jsMainImplementation(libs.wrappers.react)
    jsMainImplementation(libs.wrappers.reactDom)
    jsMainImplementation(libs.wrappers.tanstack.reactTable)
    // other wrappers
}

Make sure that you have mavenCentral() in the list of repositories.

Examples

  1. To-do list example

  2. Tic-Tac-Toe example

  3. A port of "Thinking in React" example

  4. An example of using axios to fetch remote data. It also demonstrates how to add typings for an external library.

  5. An example of using Quill that shows how to use an external React component.

  6. An example of using react-router-dom that shows how to use react-route-dom with hooks API.

  7. Building Web Applications with React and Kotlin/JS, a tutorial by JetBrains.

  8. A full-stack demo application written in Kotlin for JetBrains Night Moscow 2019.

  9. An example of using react-table that shows how to use react-table with hooks API.

  10. An example of using Material UI.

  11. 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.