choonkeat/html-data/2.0.0

NOTE: the latest version is 4.0.0

HtmlData

Types to build values to represent (Html msg)

The types are intentionally fully exposed. The helper functions exists merely to make writing them feel like elm/html et al

https://package.elm-lang.org/packages/elm/html/latest/Html

type Html msg
= Text String
| Element String (List (Attribute msg)) (List (Html msg))

We really don't need the type variable msg here, but wondering if this makes swapping out import against existing code more possible

text : String -> Html msg

see documentation in elm/html

node : String -> List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

map : (a -> msg) -> Html a -> Html msg

see documentation in elm/html

div : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

h1 : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

h2 : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

h3 : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

h4 : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

h5 : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

h6 : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

p : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

hr : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

pre : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

blockquote : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

span : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

a : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

code : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

em : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

strong : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

i : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

b : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

u : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

sub : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

sup : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

br : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

ol : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

ul : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

li : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

dl : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

dt : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

dd : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

img : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

iframe : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

canvas : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

math : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

form : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

input : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

textarea : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

button : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

select : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

option : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

section : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

article : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

aside : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

address : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

main_ : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

figure : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

figcaption : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

table : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

caption : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

colgroup : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

col : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

tbody : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

thead : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

tfoot : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

tr : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

td : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

th : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

fieldset : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

legend : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

label : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

datalist : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

optgroup : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

output : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

progress : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

meter : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

audio : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

video : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

source : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

track : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

embed : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

object : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

param : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

ins : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

del : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

small : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

cite : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

dfn : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

abbr : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

time : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

var : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

samp : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

kbd : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

s : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

q : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

mark : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

ruby : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

rt : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

rp : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

bdi : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

bdo : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

wbr : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

details : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html

summary : List (Attribute msg) -> List (Html msg) -> Html msg

see documentation in elm/html