hyper_elements library

Hyper Elements is a collection of pre-made functions that make it a bit easier to work with the standard HTML tags. It also prevents passing children to void elements like hr and img.

Functions

a({Map<String, String> attrs, List<Element> children }) Element
Create a <a> element.
abbr({Map<String, String> attrs, List<Element> children }) Element
Create a <abbr> element.
address({Map<String, String> attrs, List<Element> children }) Element
Create a <address> element.
area({Map<String, String> attrs }) Element
Create a <area> element.
article({Map<String, String> attrs, List<Element> children }) Element
Create a <article> element.
aside({Map<String, String> attrs, List<Element> children }) Element
Create a <aside> element.
audio({Map<String, String> attrs, List<Element> children }) Element
Create a <audio> element.
b({Map<String, String> attrs, List<Element> children }) Element
Create a <b> element.
base({Map<String, String> attrs }) Element
Create a <base> element.
bdi({Map<String, String> attrs, List<Element> children }) Element
Create a <bdi> element.
bdo({Map<String, String> attrs, List<Element> children }) Element
Create a <bdo> element.
big({Map<String, String> attrs, List<Element> children }) Element
Create a <big> element.
blockquote({Map<String, String> attrs, List<Element> children }) Element
Create a <blockquote> element.
body({Map<String, String> attrs, List<Element> children }) Element
Create a <body> element.
br({Map<String, String> attrs }) Element
Create a <br> element.
button({Map<String, String> attrs, List<Element> children }) Element
Create a <button> element.
canvas({Map<String, String> attrs, List<Element> children }) Element
Create a <canvas> element.
caption({Map<String, String> attrs, List<Element> children }) Element
Create a <caption> element.
circle({Map<String, String> attrs, List<Element> children }) Element
Create a <circle> element.
cite({Map<String, String> attrs, List<Element> children }) Element
Create a <cite> element.
clipPath({Map<String, String> attrs, List<Element> children }) Element
Create a <clipPath> element.
code({Map<String, String> attrs, List<Element> children }) Element
Create a <code> element.
col({Map<String, String> attrs }) Element
Create a <col> element.
colgroup({Map<String, String> attrs, List<Element> children }) Element
Create a <colgroup> element.
data({Map<String, String> attrs, List<Element> children }) Element
Create a <data> element.
datalist({Map<String, String> attrs, List<Element> children }) Element
Create a <datalist> element.
dd({Map<String, String> attrs, List<Element> children }) Element
Create a <dd> element.
defs({Map<String, String> attrs, List<Element> children }) Element
Create a <defs> element.
del({Map<String, String> attrs, List<Element> children }) Element
Create a <del> element.
details({Map<String, String> attrs, List<Element> children }) Element
Create a <details> element.
dfn({Map<String, String> attrs, List<Element> children }) Element
Create a <dfn> element.
dialog({Map<String, String> attrs, List<Element> children }) Element
Create a <dialog> element.
div({Map<String, String> attrs, List<Element> children }) Element
Create a <div> element.
dl({Map<String, String> attrs, List<Element> children }) Element
Create a <dl> element.
dt({Map<String, String> attrs, List<Element> children }) Element
Create a <dt> element.
ellipse({Map<String, String> attrs, List<Element> children }) Element
Create a <ellipse> element.
em({Map<String, String> attrs, List<Element> children }) Element
Create a <em> element.
embed({Map<String, String> attrs }) Element
Create a <embed> element.
fieldset({Map<String, String> attrs, List<Element> children }) Element
Create a <fieldset> element.
figcaption({Map<String, String> attrs, List<Element> children }) Element
Create a <figcaption> element.
figure({Map<String, String> attrs, List<Element> children }) Element
Create a <figure> element.
Create a <footer> element.
foreignObject({Map<String, String> attrs, List<Element> children }) Element
Create a <foreignObject> element.
form({Map<String, String> attrs, List<Element> children }) Element
Create a <form> element.
g({Map<String, String> attrs, List<Element> children }) Element
Create a <g> element.
h1({Map<String, String> attrs, List<Element> children }) Element
Create a <h1> element.
h2({Map<String, String> attrs, List<Element> children }) Element
Create a <h2> element.
h3({Map<String, String> attrs, List<Element> children }) Element
Create a <h3> element.
h4({Map<String, String> attrs, List<Element> children }) Element
Create a <h4> element.
h5({Map<String, String> attrs, List<Element> children }) Element
Create a <h5> element.
h6({Map<String, String> attrs, List<Element> children }) Element
Create a <h6> element.
Create a <head> element.
Create a <header> element.
hgroup({Map<String, String> attrs, List<Element> children }) Element
Create a <hgroup> element.
hr({Map<String, String> attrs }) Element
Create a <hr> element.
html({Map<String, String> attrs, List<Element> children }) Element
Create a <html> element.
i({Map<String, String> attrs, List<Element> children }) Element
Create a <i> element.
iframe({Map<String, String> attrs, List<Element> children }) Element
Create a <iframe> element.
image({Map<String, String> attrs, List<Element> children }) Element
Create a <image> element.
img({Map<String, String> attrs }) Element
Create a <img> element.
input({Map<String, String> attrs }) Element
Create a <input> element.
ins({Map<String, String> attrs, List<Element> children }) Element
Create a <ins> element.
kbd({Map<String, String> attrs, List<Element> children }) Element
Create a <kbd> element.
keygen({Map<String, String> attrs, List<Element> children }) Element
Create a <keygen> element.
label({Map<String, String> attrs, List<Element> children }) Element
Create a <label> element.
legend({Map<String, String> attrs, List<Element> children }) Element
Create a <legend> element.
li({Map<String, String> attrs, List<Element> children }) Element
Create a <li> element.
line({Map<String, String> attrs, List<Element> children }) Element
Create a <line> element.
linearGradient({Map<String, String> attrs, List<Element> children }) Element
Create a <linearGradient> element.
Create a <link> element.
main({Map<String, String> attrs, List<Element> children }) Element
Create a <main> element.
map({Map<String, String> attrs, List<Element> children }) Element
Create a <map> element.
mark({Map<String, String> attrs, List<Element> children }) Element
Create a <mark> element.
marquee({Map<String, String> attrs, List<Element> children }) Element
Create a <marquee> element.
mask({Map<String, String> attrs, List<Element> children }) Element
Create a <mask> element.
Create a <menu> element.
Create a <menuitem> element.
meta({Map<String, String> attrs }) Element
Create a <meta> element.
meter({Map<String, String> attrs, List<Element> children }) Element
Create a <meter> element.
Create a <nav> element.
noscript({Map<String, String> attrs, List<Element> children }) Element
Create a <noscript> element.
object({Map<String, String> attrs, List<Element> children }) Element
Create a <object> element.
ol({Map<String, String> attrs, List<Element> children }) Element
Create a <ol> element.
optgroup({Map<String, String> attrs, List<Element> children }) Element
Create a <optgroup> element.
option({Map<String, String> attrs, List<Element> children }) Element
Create a <option> element.
output({Map<String, String> attrs, List<Element> children }) Element
Create a <output> element.
p({Map<String, String> attrs, List<Element> children }) Element
Create a <p> element.
param({Map<String, String> attrs }) Element
Create a <param> element.
path({Map<String, String> attrs, List<Element> children }) Element
Create a <path> element.
pattern({Map<String, String> attrs, List<Element> children }) Element
Create a <pattern> element.
picture({Map<String, String> attrs, List<Element> children }) Element
Create a <picture> element.
polygon({Map<String, String> attrs, List<Element> children }) Element
Create a <polygon> element.
polyline({Map<String, String> attrs, List<Element> children }) Element
Create a <polyline> element.
pre({Map<String, String> attrs, List<Element> children }) Element
Create a <pre> element.
progress({Map<String, String> attrs, List<Element> children }) Element
Create a <progress> element.
q({Map<String, String> attrs, List<Element> children }) Element
Create a <q> element.
radialGradient({Map<String, String> attrs, List<Element> children }) Element
Create a <radialGradient> element.
rect({Map<String, String> attrs, List<Element> children }) Element
Create a <rect> element.
rp({Map<String, String> attrs, List<Element> children }) Element
Create a <rp> element.
rt({Map<String, String> attrs, List<Element> children }) Element
Create a <rt> element.
ruby({Map<String, String> attrs, List<Element> children }) Element
Create a <ruby> element.
s({Map<String, String> attrs, List<Element> children }) Element
Create a <s> element.
samp({Map<String, String> attrs, List<Element> children }) Element
Create a <samp> element.
script({Map<String, String> attrs, List<Element> children }) Element
Create a <script> element.
section({Map<String, String> attrs, List<Element> children }) Element
Create a <section> element.
select({Map<String, String> attrs, List<Element> children }) Element
Create a <select> element.
small({Map<String, String> attrs, List<Element> children }) Element
Create a <small> element.
source({Map<String, String> attrs }) Element
Create a <source> element.
span({Map<String, String> attrs, List<Element> children }) Element
Create a <span> element.
stop({Map<String, String> attrs, List<Element> children }) Element
Create a <stop> element.
strong({Map<String, String> attrs, List<Element> children }) Element
Create a <strong> element.
style({Map<String, String> attrs, List<Element> children }) Element
Create a <style> element.
sub({Map<String, String> attrs, List<Element> children }) Element
Create a <sub> element.
summary({Map<String, String> attrs, List<Element> children }) Element
Create a <summary> element.
sup({Map<String, String> attrs, List<Element> children }) Element
Create a <sup> element.
svg({Map<String, String> attrs, List<Element> children }) Element
Create a <svg> element.
table({Map<String, String> attrs, List<Element> children }) Element
Create a <table> element.
tbody({Map<String, String> attrs, List<Element> children }) Element
Create a <tbody> element.
td({Map<String, String> attrs, List<Element> children }) Element
Create a <td> element.
text({Map<String, String> attrs, List<Element> children }) Element
Create a <text> element.
textarea({Map<String, String> attrs, List<Element> children }) Element
Create a <textarea> element.
tfoot({Map<String, String> attrs, List<Element> children }) Element
Create a <tfoot> element.
th({Map<String, String> attrs, List<Element> children }) Element
Create a <th> element.
thead({Map<String, String> attrs, List<Element> children }) Element
Create a <thead> element.
time({Map<String, String> attrs, List<Element> children }) Element
Create a <time> element.
title({Map<String, String> attrs, List<Element> children }) Element
Create a <title> element.
tr({Map<String, String> attrs, List<Element> children }) Element
Create a <tr> element.
track({Map<String, String> attrs }) Element
Create a <track> element.
tspan({Map<String, String> attrs, List<Element> children }) Element
Create a <tspan> element.
u({Map<String, String> attrs, List<Element> children }) Element
Create a <u> element.
ul({Map<String, String> attrs, List<Element> children }) Element
Create a <ul> element.
var_({Map<String, String> attrs, List<Element> children }) Element
Create a <var> element.
video({Map<String, String> attrs, List<Element> children }) Element
Create a <video> element.
wbr({Map<String, String> attrs }) Element
Create a <wbr> element.