silkenweb_html/lib.rs
1#![allow(clippy::must_use_candidate)]
2//! Builders for HTML elements.
3//!
4//! Each HTML element has a function, a struct and a builder struct. The
5//! function is a constructor for the builder. The builder has methods for each
6//! attribute for that element, as well as methods for each event. For example:
7//!
8//! ```no_run
9//! # use silkenweb_html::elements::{a, A, ABuilder};
10//! use web_sys as dom;
11//! let link: ABuilder = a()
12//! .href("https://example.com/")
13//! .on_click(|event: dom::MouseEvent, link: dom::HtmlAnchorElement| {});
14//! ```
15
16#[macro_use]
17pub mod macros;
18
19#[rustfmt::skip]
20pub mod elements;