Skip to content
This repository was archived by the owner on Jul 2, 2023. It is now read-only.

bclnet/KotlinUI

Repository files navigation

KotlinUI

A UI layout in kotlin

KotlinUIJson

A Json representation of KotlinUI enabling runtime defined views

Example

JsonPreview will provide json output with a before, and after representation.

import kotlinx.kotlinui
import kotlinx.kotlinuijson

class SampleView : View {
    override val body: View =
        VStack {
            Text("Hello World")
            .padding()
        }
}

object SampleView_Previews : PreviewProvider {
    override val previews: View =
        JsonPreview {
            SampleView()
        }
}

References

The extension method var will let KotlinUIJson know this is intended to be a variable.

VStack {
    Text("Title Here".var(self));
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages