redraw/dom/html

All built-in browser components, such as <div>, <span>, etc. support common attributes and events.
To stay compatible with the Lustre API, Redraw defines the entire set of HTML elements. They’re instantiated with JSX under-the-hood, and requires a modern runtime to get them working.

Find detailed documentation on MDN.

Values

pub fn a(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn abbr(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn address(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn article(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn aside(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn audio(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn b(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn bdi(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn bdo(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn blockquote(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn body(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn button(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn canvas(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn caption(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn cite(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn code(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn colgroup(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn data(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn datalist(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn dd(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn del(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn details(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn dfn(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn dialog(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn div(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn dl(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn dt(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn element(
  tag: String,
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn em(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn fieldset(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn figcaption(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn figure(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn footer(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn form(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn h1(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn h2(
  attrs: List(attribute.Attribute),
  children: a,
) -> redraw.Component
pub fn h3(
  attrs: List(attribute.Attribute),
  children: a,
) -> redraw.Component
pub fn h4(
  attrs: List(attribute.Attribute),
  children: a,
) -> redraw.Component
pub fn h5(
  attrs: List(attribute.Attribute),
  children: a,
) -> redraw.Component
pub fn h6(
  attrs: List(attribute.Attribute),
  children: a,
) -> redraw.Component
pub fn head(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn header(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn hgroup(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn html(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn i(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn ins(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn kbd(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn label(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn legend(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn li(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn main(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn map(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn mark(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn menu(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn meter(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn nav(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn none() -> redraw.Component

Empty node. Does not render anything in the DOM.

pub fn noscript(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn object(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn ol(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn optgroup(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn option(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn output(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn p(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn picture(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn pre(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn progress(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn q(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn rp(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn rt(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn ruby(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn s(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn samp(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn script(
  attrs: List(attribute.Attribute),
  script: String,
) -> redraw.Component
pub fn section(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn select(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn slot(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn small(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn span(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn strong(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn style(
  attrs: List(attribute.Attribute),
  content: String,
) -> redraw.Component
pub fn sub(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn summary(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn sup(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn table(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn tbody(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn td(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn template(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn text(content: String) -> redraw.Component
pub fn textarea(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn tfoot(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn th(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn thead(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn time(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn title(
  attrs: List(attribute.Attribute),
  content: String,
) -> redraw.Component
pub fn to_props(attrs: List(attribute.Attribute)) -> b
pub fn tr(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn u(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn ul(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn var(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
pub fn video(
  attrs: List(attribute.Attribute),
  children: List(redraw.Component),
) -> redraw.Component
Search Document