1.1.1 • Published 1 month ago

@ostov-larion/yuta v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Yuta

Declarative UI Framework based on GTK4.

Hello World

const {
    App, 
    adw: {Window, HeaderBar, WindowTitle, Clamp},
    gtk: {Box, Label}, 
    on,
    set: {content, orientation, titleWidget, title, child, vexpand, label}, 
    orientation: {vertical}, 
    go: {append, present, setDefaultSize},
    style,
    quit
} = require("yuta")

App("org.yuta.Test", app => 
    Window(
        setDefaultSize(400,400),
        on["close-request"](quit(app)),
        content(
            Box(
                orientation(vertical),
                append(
                    HeaderBar(
                        titleWidget(WindowTitle(title("Hello World App"))),
                    )
                ),
                append(
                    Clamp(
                        child(
                            Label(
                                vexpand(true),
                                style("title-1"),
                                label("Hello World")
                            )
                        )
                    )
                )
            )
        ),
        present()
    )
)
1.1.1

1 month ago

1.1.0

1 month ago

1.0.9

1 month ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.0

2 months ago