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.
Functions
pub fn abbr(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn address(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn article(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn aside(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn audio(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn blockquote(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn body(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn button(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn canvas(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn caption(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn cite(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn code(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn colgroup(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn data(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn datalist(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn details(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn dialog(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn fieldset(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn figcaption(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn figure(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn footer(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn form(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn head(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn header(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn hgroup(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn html(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn label(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn legend(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn main(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn mark(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn menu(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn meter(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn noscript(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn object(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn optgroup(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn option(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn output(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn picture(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn progress(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn ruby(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn samp(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn section(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn select(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn slot(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn small(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn span(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn strong(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn summary(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn table(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn tbody(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn template(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn textarea(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn tfoot(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn thead(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn time(
attrs: List(Attribute),
children: List(Component),
) -> Component
pub fn video(
attrs: List(Attribute),
children: List(Component),
) -> Component