underlow / semantic-ui-kotlin-wrapper

Kotlin JS wrapper for Semantic UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing all "Nested" Components

Labdabeta opened this issue · comments

For example Button.Group is missing. Its a bit hacky to get it into Kotlin, but I've had success with:

external interface ButtonProps : RProps { ... }
external Interface ButtonGroupProps : RProps { ... }

// I tend to use Class instead of Component personally, not a big difference though
abstract external class ButtonClass : RClass<ButtonProps> {
    @JsName("Group")
    val Group : RClass<ButtonGroupProps>
}

There's a lot of such classes to be included, enjoy!

(P.S.: I'm basically re-copying the whole thing on my own for a personal project, I wonder why you add ? to each type in the Prop interfaces, I know that makes it nullable, but it seems to work fine without it???)