Skip to content
@blok-ui

Blok

UI blocks for Haxe

Blok

A reactive UI framework for Haxe.

Here's a simple example:

import blok.ui.*;
import blok.html.Html;
import blok.html.Client.mount;

function main() {
  var root = js.Browser.document.getElementById('root');
  mount(root, Counter.node({}));
}

class Counter extends Component {
  @:signal final count:Int = 0;

  function decrement(_:blok.html.HtmlEvents.Event) {
    count.update(count -> count > 0 ? count - 1 : 0);
  }

  function render() return Html.view(<div>
    <div>count</div>
    <button onClick=decrement>"-"</button>
    <button onClick={ _ -> count.update(count -> count + 1)}>"+"</button>
  </div>);
}

Pinned Loading

  1. blok.core blok.core Public

    Core functionality for Blok.

    Haxe

  2. blok.foundation blok.foundation Public

    Unstyled components for Blok

    Haxe

  3. blok.bridge blok.bridge Public

    Server-client bridge for Blok

    Haxe

  4. blok.router blok.router Public

    Simple routing for Blok

    Haxe

Repositories

Showing 10 of 12 repositories
  • blok.core Public

    Core functionality for Blok.

    blok-ui/blok.core’s past year of commit activity
    Haxe 0 MIT 0 1 0 Updated Dec 15, 2024
  • blok.bridge Public

    Server-client bridge for Blok

    blok-ui/blok.bridge’s past year of commit activity
    Haxe 0 MIT 0 0 0 Updated Dec 8, 2024
  • .github Public
    blok-ui/.github’s past year of commit activity
    0 0 0 0 Updated Dec 4, 2024
  • blok.image Public

    Image handling for Blok

    blok-ui/blok.image’s past year of commit activity
    Haxe 0 MIT 0 0 0 Updated Dec 3, 2024
  • blok.foundation Public

    Unstyled components for Blok

    blok-ui/blok.foundation’s past year of commit activity
    Haxe 0 MIT 0 0 0 Updated Dec 3, 2024
  • blok.router Public

    Simple routing for Blok

    blok-ui/blok.router’s past year of commit activity
    Haxe 0 MIT 0 0 0 Updated Dec 3, 2024
  • blok.tower Public

    Web development for Haxe

    blok-ui/blok.tower’s past year of commit activity
    Haxe 0 MIT 0 1 0 Updated May 11, 2024
  • blok.platform.dom Public archive
    blok-ui/blok.platform.dom’s past year of commit activity
    Haxe 0 0 0 0 Updated Apr 10, 2022
  • blok.platform.static Public archive
    blok-ui/blok.platform.static’s past year of commit activity
    Haxe 0 0 0 0 Updated Apr 9, 2022
  • blok.core.html Public archive
    blok-ui/blok.core.html’s past year of commit activity
    Haxe 0 0 0 0 Updated Mar 28, 2022

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…