Skip to content

struct

DomHost

pub struct DomHost {
    /* private fields */
}

A Host rendering into a DOM element.

Methods

new

pub fn new(root: Element) -> Result<DomHost, JsValue>

Render into root (its existing content is cleared) with the default Tailwind theme.

with_theme

pub fn with_theme(root: Element, theme: Theme) -> Result<DomHost, JsValue>

Render into root using a custom Tailwind theme.

Trait implementations