Kotlin/JS bindings and tools for JS UIKit library
Go to file
2022-01-13 19:56:39 +06:00
.github/workflows Initial commit 2021-12-22 13:51:17 +06:00
gradle now project is multiplatform and correctly working 2022-01-13 19:56:39 +06:00
src now project is multiplatform and correctly working 2022-01-13 19:56:39 +06:00
.gitignore start 0.0.1 and actualize 2021-12-24 01:11:20 +06:00
build.gradle now project is multiplatform and correctly working 2022-01-13 19:56:39 +06:00
changelog_parser.sh rename changelogparser.sh to changelog_parser.sh 2022-01-12 14:40:45 +06:00
CHANGELOG.md now project is multiplatform and correctly working 2022-01-13 19:56:39 +06:00
github_release.gradle Update github_release.gradle 2022-01-12 15:49:07 +06:00
gradle.properties start 0.0.7 2022-01-13 19:56:09 +06:00
gradlew Initial commit 2021-12-22 13:51:17 +06:00
gradlew.bat Initial commit 2021-12-22 13:51:17 +06:00
LICENSE Initial commit 2021-12-22 13:51:17 +06:00
publish.gradle now project is multiplatform and correctly working 2022-01-13 19:56:39 +06:00
publish.kpsb now project is multiplatform and correctly working 2022-01-13 19:56:39 +06:00
README.md add varargs notice 2022-01-12 13:08:10 +06:00
settings.gradle rename project 2022-01-12 16:04:08 +06:00

JSUIKit Kotlin

IMPORTANT NOTICE: Currently it is possible that you will have issues with vararg arguments passing to the functions. Use arrayOf(...) instead

Hello :) This library is a wrapper for JavaScript/CSS UIKit framework. It uses the same structure as in UIKit Docs and in most cases you may use it.

The main target of this wrapper is a JetBrains Compose JS and will be useful for you in case you are using it too.

How to include

Last version: Maven Central

implementation "dev.inmo:jsuikitkotlin:$jsuikitkotlin_version"

THIS LIBRARY DO NOT ADD ANY JS OR CSS. So, you must download and include UIKit js/css by yourself. See UIKit installation instructions

How to use

In this library there are two main entities:

  • Builder functions - buttons, spinners, icons, grids, etc.
  • Modifiers - UIKitAlign, UIKitAnimation, etc.

For example, if you want to add table in your html, you will use next code:

DefaultTable(
    listOf("Heading 1", "Heading 2", "Heading 3"),
    data, // SnapshotStateList<T>
    UIKitTable.Divider // modifier, add dividers
) { i, item -> // i - number of heading, item - item from data; composable callback
    when (i) {
        0 -> Text(item.toString())
        1 -> Text("data 2")
        2 -> Text("data 3")
    }
}