underlow / semantic-ui-kotlin-wrapper

Kotlin JS wrapper for Semantic UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin JS wrapper for Semantic UI

Kotlin wrapper library to use Semantic UI React in Kotlin JS project.

This is Proof of Concept. Be careful using it. Feel free to submit tickets or pull requests.

Usage

  • Build

    • by gradle build
    • Add jar file to your project
  • OR use maven

  • Add semantic ui react npm package, usually that means add "semantic-ui-react": "^0.82.1" to package.json

  • Try somthing like

class LoginComponent : RComponent<RProps, RState>() {
    override fun RBuilder.render() {
        Button {
            attrs {
                fluid = true
                color = "teal"
                size = "large"
            }
            +"Login"
        }
    }
}

About

Kotlin JS wrapper for Semantic UI

License:MIT License


Languages

Language:Kotlin 100.0%