silkenweb-html 0.1.0

Silkenweb HTML types
Documentation

Builders for HTML elements.

Each HTML element has a function, a struct and a builder struct. The function is a constructor for the builder. The builder has methods for each attribute for that element, as well as methods for each event. For example:

# use silkenweb_html::elements::{a, A, ABuilder};
use web_sys as dom;
let link: ABuilder = a()
.href("https://example.com/")
.on_click(|event: dom::MouseEvent, link: dom::HtmlAnchorElement| {});