Packages

A platform agnostic Elm-like framework (soft-fork of Lustre)

Current section

Files

Jump to
agnostic src agnostic@element@html.erl
Raw

src/agnostic@element@html.erl

-module(agnostic@element@html).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/agnostic/element/html.gleam").
-export([html/2, text/1, unsafe_raw/4, base/1, head/2, link/1, meta/1, style/2, title/2, body/2, address/2, article/2, aside/2, footer/2, header/2, h1/2, h2/2, h3/2, h4/2, h5/2, h6/2, hgroup/2, main/2, nav/2, section/2, search/2, blockquote/2, dd/2, 'div'/2, dl/2, dt/2, figcaption/2, figure/2, hr/1, li/2, menu/2, ol/2, p/2, pre/2, ul/2, a/2, abbr/2, b/2, bdi/2, bdo/2, br/1, cite/2, code/2, data/2, dfn/2, em/2, i/2, kbd/2, mark/2, q/2, rp/2, rt/2, ruby/2, s/2, samp/2, small/2, span/2, strong/2, sub/2, sup/2, time/2, u/2, var/2, wbr/1, area/1, audio/2, img/1, map/2, track/1, video/2, embed/1, iframe/1, object/1, picture/2, portal/1, source/1, math/2, svg/2, canvas/1, noscript/2, script/2, del/2, ins/2, caption/2, col/1, colgroup/2, table/2, tbody/2, td/2, tfoot/2, th/2, thead/2, tr/2, button/2, datalist/2, fieldset/2, form/2, input/1, label/2, legend/2, meter/2, optgroup/2, option/2, output/2, progress/2, select/2, textarea/2, details/2, dialog/2, summary/2, slot/2, template/2]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
-file("src/agnostic/element/html.gleam", 12).
?DOC("\n").
-spec html(
list(agnostic@vdom@vattr:attribute(HFA)),
list(agnostic@vdom@vnode:element(HFA))
) -> agnostic@vdom@vnode:element(HFA).
html(Attrs, Children) ->
agnostic@element:element(<<"html"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 19).
-spec text(binary()) -> agnostic@vdom@vnode:element(any()).
text(Content) ->
agnostic@element:text(Content).
-file("src/agnostic/element/html.gleam", 38).
?DOC(
" Render raw HTML content inside a container element. This is the HTML-specific\n"
" version of `element.unsafe_raw_content` that takes an HTML string directly.\n"
"\n"
" **Warning:** The provided HTML is inserted verbatim without escaping. This can\n"
" expose your application to XSS attacks if you pass untrusted user input.\n"
" Only use this with HTML you control or have properly sanitized.\n"
"\n"
" For an empty namespace (standard HTML), pass an empty string `\"\"`.\n"
"\n"
" ## Example\n"
"\n"
" ```gleam\n"
" html.unsafe_raw(\"div\", [attribute.class(\"container\")], \"<strong>Bold</strong>\")\n"
" ```\n"
).
-spec unsafe_raw(
binary(),
binary(),
list(agnostic@vdom@vattr:attribute(HFI)),
binary()
) -> agnostic@vdom@vnode:element(HFI).
unsafe_raw(Namespace, Tag, Attributes, Inner_html) ->
agnostic@element:unsafe_raw_content(
<<""/utf8>>,
Namespace,
Tag,
Attributes,
Inner_html,
none
).
-file("src/agnostic/element/html.gleam", 57).
?DOC("\n").
-spec base(list(agnostic@vdom@vattr:attribute(HFM))) -> agnostic@vdom@vnode:element(HFM).
base(Attrs) ->
agnostic@element:element(<<"base"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 62).
?DOC("\n").
-spec head(
list(agnostic@vdom@vattr:attribute(HFQ)),
list(agnostic@vdom@vnode:element(HFQ))
) -> agnostic@vdom@vnode:element(HFQ).
head(Attrs, Children) ->
agnostic@element:element(<<"head"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 70).
?DOC("\n").
-spec link(list(agnostic@vdom@vattr:attribute(HFW))) -> agnostic@vdom@vnode:element(HFW).
link(Attrs) ->
agnostic@element:element(<<"link"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 75).
?DOC("\n").
-spec meta(list(agnostic@vdom@vattr:attribute(HGA))) -> agnostic@vdom@vnode:element(HGA).
meta(Attrs) ->
agnostic@element:element(<<"meta"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 80).
?DOC("\n").
-spec style(list(agnostic@vdom@vattr:attribute(HGE)), binary()) -> agnostic@vdom@vnode:element(HGE).
style(Attrs, Css) ->
unsafe_raw(<<""/utf8>>, <<"style"/utf8>>, Attrs, Css).
-file("src/agnostic/element/html.gleam", 85).
?DOC("\n").
-spec title(list(agnostic@vdom@vattr:attribute(HGI)), binary()) -> agnostic@vdom@vnode:element(HGI).
title(Attrs, Content) ->
agnostic@element:element(<<"title"/utf8>>, Attrs, [text(Content)]).
-file("src/agnostic/element/html.gleam", 95).
?DOC("\n").
-spec body(
list(agnostic@vdom@vattr:attribute(HGM)),
list(agnostic@vdom@vnode:element(HGM))
) -> agnostic@vdom@vnode:element(HGM).
body(Attrs, Children) ->
agnostic@element:element(<<"body"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 105).
?DOC("\n").
-spec address(
list(agnostic@vdom@vattr:attribute(HGS)),
list(agnostic@vdom@vnode:element(HGS))
) -> agnostic@vdom@vnode:element(HGS).
address(Attrs, Children) ->
agnostic@element:element(<<"address"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 113).
?DOC("\n").
-spec article(
list(agnostic@vdom@vattr:attribute(HGY)),
list(agnostic@vdom@vnode:element(HGY))
) -> agnostic@vdom@vnode:element(HGY).
article(Attrs, Children) ->
agnostic@element:element(<<"article"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 121).
?DOC("\n").
-spec aside(
list(agnostic@vdom@vattr:attribute(HHE)),
list(agnostic@vdom@vnode:element(HHE))
) -> agnostic@vdom@vnode:element(HHE).
aside(Attrs, Children) ->
agnostic@element:element(<<"aside"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 129).
?DOC("\n").
-spec footer(
list(agnostic@vdom@vattr:attribute(HHK)),
list(agnostic@vdom@vnode:element(HHK))
) -> agnostic@vdom@vnode:element(HHK).
footer(Attrs, Children) ->
agnostic@element:element(<<"footer"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 137).
?DOC("\n").
-spec header(
list(agnostic@vdom@vattr:attribute(HHQ)),
list(agnostic@vdom@vnode:element(HHQ))
) -> agnostic@vdom@vnode:element(HHQ).
header(Attrs, Children) ->
agnostic@element:element(<<"header"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 145).
?DOC("\n").
-spec h1(
list(agnostic@vdom@vattr:attribute(HHW)),
list(agnostic@vdom@vnode:element(HHW))
) -> agnostic@vdom@vnode:element(HHW).
h1(Attrs, Children) ->
agnostic@element:element(<<"h1"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 153).
?DOC("\n").
-spec h2(
list(agnostic@vdom@vattr:attribute(HIC)),
list(agnostic@vdom@vnode:element(HIC))
) -> agnostic@vdom@vnode:element(HIC).
h2(Attrs, Children) ->
agnostic@element:element(<<"h2"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 161).
?DOC("\n").
-spec h3(
list(agnostic@vdom@vattr:attribute(HII)),
list(agnostic@vdom@vnode:element(HII))
) -> agnostic@vdom@vnode:element(HII).
h3(Attrs, Children) ->
agnostic@element:element(<<"h3"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 169).
?DOC("\n").
-spec h4(
list(agnostic@vdom@vattr:attribute(HIO)),
list(agnostic@vdom@vnode:element(HIO))
) -> agnostic@vdom@vnode:element(HIO).
h4(Attrs, Children) ->
agnostic@element:element(<<"h4"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 177).
?DOC("\n").
-spec h5(
list(agnostic@vdom@vattr:attribute(HIU)),
list(agnostic@vdom@vnode:element(HIU))
) -> agnostic@vdom@vnode:element(HIU).
h5(Attrs, Children) ->
agnostic@element:element(<<"h5"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 185).
?DOC("\n").
-spec h6(
list(agnostic@vdom@vattr:attribute(HJA)),
list(agnostic@vdom@vnode:element(HJA))
) -> agnostic@vdom@vnode:element(HJA).
h6(Attrs, Children) ->
agnostic@element:element(<<"h6"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 193).
?DOC("\n").
-spec hgroup(
list(agnostic@vdom@vattr:attribute(HJG)),
list(agnostic@vdom@vnode:element(HJG))
) -> agnostic@vdom@vnode:element(HJG).
hgroup(Attrs, Children) ->
agnostic@element:element(<<"hgroup"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 201).
?DOC("\n").
-spec main(
list(agnostic@vdom@vattr:attribute(HJM)),
list(agnostic@vdom@vnode:element(HJM))
) -> agnostic@vdom@vnode:element(HJM).
main(Attrs, Children) ->
agnostic@element:element(<<"main"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 209).
?DOC("\n").
-spec nav(
list(agnostic@vdom@vattr:attribute(HJS)),
list(agnostic@vdom@vnode:element(HJS))
) -> agnostic@vdom@vnode:element(HJS).
nav(Attrs, Children) ->
agnostic@element:element(<<"nav"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 217).
?DOC("\n").
-spec section(
list(agnostic@vdom@vattr:attribute(HJY)),
list(agnostic@vdom@vnode:element(HJY))
) -> agnostic@vdom@vnode:element(HJY).
section(Attrs, Children) ->
agnostic@element:element(<<"section"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 225).
?DOC("\n").
-spec search(
list(agnostic@vdom@vattr:attribute(HKE)),
list(agnostic@vdom@vnode:element(HKE))
) -> agnostic@vdom@vnode:element(HKE).
search(Attrs, Children) ->
agnostic@element:element(<<"search"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 235).
?DOC("\n").
-spec blockquote(
list(agnostic@vdom@vattr:attribute(HKK)),
list(agnostic@vdom@vnode:element(HKK))
) -> agnostic@vdom@vnode:element(HKK).
blockquote(Attrs, Children) ->
agnostic@element:element(<<"blockquote"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 243).
?DOC("\n").
-spec dd(
list(agnostic@vdom@vattr:attribute(HKQ)),
list(agnostic@vdom@vnode:element(HKQ))
) -> agnostic@vdom@vnode:element(HKQ).
dd(Attrs, Children) ->
agnostic@element:element(<<"dd"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 251).
?DOC("\n").
-spec 'div'(
list(agnostic@vdom@vattr:attribute(HKW)),
list(agnostic@vdom@vnode:element(HKW))
) -> agnostic@vdom@vnode:element(HKW).
'div'(Attrs, Children) ->
agnostic@element:element(<<"div"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 259).
?DOC("\n").
-spec dl(
list(agnostic@vdom@vattr:attribute(HLC)),
list(agnostic@vdom@vnode:element(HLC))
) -> agnostic@vdom@vnode:element(HLC).
dl(Attrs, Children) ->
agnostic@element:element(<<"dl"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 267).
?DOC("\n").
-spec dt(
list(agnostic@vdom@vattr:attribute(HLI)),
list(agnostic@vdom@vnode:element(HLI))
) -> agnostic@vdom@vnode:element(HLI).
dt(Attrs, Children) ->
agnostic@element:element(<<"dt"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 275).
?DOC("\n").
-spec figcaption(
list(agnostic@vdom@vattr:attribute(HLO)),
list(agnostic@vdom@vnode:element(HLO))
) -> agnostic@vdom@vnode:element(HLO).
figcaption(Attrs, Children) ->
agnostic@element:element(<<"figcaption"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 283).
?DOC("\n").
-spec figure(
list(agnostic@vdom@vattr:attribute(HLU)),
list(agnostic@vdom@vnode:element(HLU))
) -> agnostic@vdom@vnode:element(HLU).
figure(Attrs, Children) ->
agnostic@element:element(<<"figure"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 291).
?DOC("\n").
-spec hr(list(agnostic@vdom@vattr:attribute(HMA))) -> agnostic@vdom@vnode:element(HMA).
hr(Attrs) ->
agnostic@element:element(<<"hr"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 296).
?DOC("\n").
-spec li(
list(agnostic@vdom@vattr:attribute(HME)),
list(agnostic@vdom@vnode:element(HME))
) -> agnostic@vdom@vnode:element(HME).
li(Attrs, Children) ->
agnostic@element:element(<<"li"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 304).
?DOC("\n").
-spec menu(
list(agnostic@vdom@vattr:attribute(HMK)),
list(agnostic@vdom@vnode:element(HMK))
) -> agnostic@vdom@vnode:element(HMK).
menu(Attrs, Children) ->
agnostic@element:element(<<"menu"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 312).
?DOC("\n").
-spec ol(
list(agnostic@vdom@vattr:attribute(HMQ)),
list(agnostic@vdom@vnode:element(HMQ))
) -> agnostic@vdom@vnode:element(HMQ).
ol(Attrs, Children) ->
agnostic@element:element(<<"ol"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 320).
?DOC("\n").
-spec p(
list(agnostic@vdom@vattr:attribute(HMW)),
list(agnostic@vdom@vnode:element(HMW))
) -> agnostic@vdom@vnode:element(HMW).
p(Attrs, Children) ->
agnostic@element:element(<<"p"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 328).
?DOC("\n").
-spec pre(
list(agnostic@vdom@vattr:attribute(HNC)),
list(agnostic@vdom@vnode:element(HNC))
) -> agnostic@vdom@vnode:element(HNC).
pre(Attrs, Children) ->
agnostic@element:element(<<"pre"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 336).
?DOC("\n").
-spec ul(
list(agnostic@vdom@vattr:attribute(HNI)),
list(agnostic@vdom@vnode:element(HNI))
) -> agnostic@vdom@vnode:element(HNI).
ul(Attrs, Children) ->
agnostic@element:element(<<"ul"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 346).
?DOC("\n").
-spec a(
list(agnostic@vdom@vattr:attribute(HNO)),
list(agnostic@vdom@vnode:element(HNO))
) -> agnostic@vdom@vnode:element(HNO).
a(Attrs, Children) ->
agnostic@element:element(<<"a"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 354).
?DOC("\n").
-spec abbr(
list(agnostic@vdom@vattr:attribute(HNU)),
list(agnostic@vdom@vnode:element(HNU))
) -> agnostic@vdom@vnode:element(HNU).
abbr(Attrs, Children) ->
agnostic@element:element(<<"abbr"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 362).
?DOC("\n").
-spec b(
list(agnostic@vdom@vattr:attribute(HOA)),
list(agnostic@vdom@vnode:element(HOA))
) -> agnostic@vdom@vnode:element(HOA).
b(Attrs, Children) ->
agnostic@element:element(<<"b"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 370).
?DOC("\n").
-spec bdi(
list(agnostic@vdom@vattr:attribute(HOG)),
list(agnostic@vdom@vnode:element(HOG))
) -> agnostic@vdom@vnode:element(HOG).
bdi(Attrs, Children) ->
agnostic@element:element(<<"bdi"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 378).
?DOC("\n").
-spec bdo(
list(agnostic@vdom@vattr:attribute(HOM)),
list(agnostic@vdom@vnode:element(HOM))
) -> agnostic@vdom@vnode:element(HOM).
bdo(Attrs, Children) ->
agnostic@element:element(<<"bdo"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 386).
?DOC("\n").
-spec br(list(agnostic@vdom@vattr:attribute(HOS))) -> agnostic@vdom@vnode:element(HOS).
br(Attrs) ->
agnostic@element:element(<<"br"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 391).
?DOC("\n").
-spec cite(
list(agnostic@vdom@vattr:attribute(HOW)),
list(agnostic@vdom@vnode:element(HOW))
) -> agnostic@vdom@vnode:element(HOW).
cite(Attrs, Children) ->
agnostic@element:element(<<"cite"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 399).
?DOC("\n").
-spec code(
list(agnostic@vdom@vattr:attribute(HPC)),
list(agnostic@vdom@vnode:element(HPC))
) -> agnostic@vdom@vnode:element(HPC).
code(Attrs, Children) ->
agnostic@element:element(<<"code"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 407).
?DOC("\n").
-spec data(
list(agnostic@vdom@vattr:attribute(HPI)),
list(agnostic@vdom@vnode:element(HPI))
) -> agnostic@vdom@vnode:element(HPI).
data(Attrs, Children) ->
agnostic@element:element(<<"data"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 415).
?DOC("\n").
-spec dfn(
list(agnostic@vdom@vattr:attribute(HPO)),
list(agnostic@vdom@vnode:element(HPO))
) -> agnostic@vdom@vnode:element(HPO).
dfn(Attrs, Children) ->
agnostic@element:element(<<"dfn"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 423).
?DOC("\n").
-spec em(
list(agnostic@vdom@vattr:attribute(HPU)),
list(agnostic@vdom@vnode:element(HPU))
) -> agnostic@vdom@vnode:element(HPU).
em(Attrs, Children) ->
agnostic@element:element(<<"em"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 431).
?DOC("\n").
-spec i(
list(agnostic@vdom@vattr:attribute(HQA)),
list(agnostic@vdom@vnode:element(HQA))
) -> agnostic@vdom@vnode:element(HQA).
i(Attrs, Children) ->
agnostic@element:element(<<"i"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 439).
?DOC("\n").
-spec kbd(
list(agnostic@vdom@vattr:attribute(HQG)),
list(agnostic@vdom@vnode:element(HQG))
) -> agnostic@vdom@vnode:element(HQG).
kbd(Attrs, Children) ->
agnostic@element:element(<<"kbd"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 447).
?DOC("\n").
-spec mark(
list(agnostic@vdom@vattr:attribute(HQM)),
list(agnostic@vdom@vnode:element(HQM))
) -> agnostic@vdom@vnode:element(HQM).
mark(Attrs, Children) ->
agnostic@element:element(<<"mark"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 455).
?DOC("\n").
-spec q(
list(agnostic@vdom@vattr:attribute(HQS)),
list(agnostic@vdom@vnode:element(HQS))
) -> agnostic@vdom@vnode:element(HQS).
q(Attrs, Children) ->
agnostic@element:element(<<"q"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 463).
?DOC("\n").
-spec rp(
list(agnostic@vdom@vattr:attribute(HQY)),
list(agnostic@vdom@vnode:element(HQY))
) -> agnostic@vdom@vnode:element(HQY).
rp(Attrs, Children) ->
agnostic@element:element(<<"rp"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 471).
?DOC("\n").
-spec rt(
list(agnostic@vdom@vattr:attribute(HRE)),
list(agnostic@vdom@vnode:element(HRE))
) -> agnostic@vdom@vnode:element(HRE).
rt(Attrs, Children) ->
agnostic@element:element(<<"rt"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 479).
?DOC("\n").
-spec ruby(
list(agnostic@vdom@vattr:attribute(HRK)),
list(agnostic@vdom@vnode:element(HRK))
) -> agnostic@vdom@vnode:element(HRK).
ruby(Attrs, Children) ->
agnostic@element:element(<<"ruby"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 487).
?DOC("\n").
-spec s(
list(agnostic@vdom@vattr:attribute(HRQ)),
list(agnostic@vdom@vnode:element(HRQ))
) -> agnostic@vdom@vnode:element(HRQ).
s(Attrs, Children) ->
agnostic@element:element(<<"s"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 495).
?DOC("\n").
-spec samp(
list(agnostic@vdom@vattr:attribute(HRW)),
list(agnostic@vdom@vnode:element(HRW))
) -> agnostic@vdom@vnode:element(HRW).
samp(Attrs, Children) ->
agnostic@element:element(<<"samp"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 503).
?DOC("\n").
-spec small(
list(agnostic@vdom@vattr:attribute(HSC)),
list(agnostic@vdom@vnode:element(HSC))
) -> agnostic@vdom@vnode:element(HSC).
small(Attrs, Children) ->
agnostic@element:element(<<"small"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 511).
?DOC("\n").
-spec span(
list(agnostic@vdom@vattr:attribute(HSI)),
list(agnostic@vdom@vnode:element(HSI))
) -> agnostic@vdom@vnode:element(HSI).
span(Attrs, Children) ->
agnostic@element:element(<<"span"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 519).
?DOC("\n").
-spec strong(
list(agnostic@vdom@vattr:attribute(HSO)),
list(agnostic@vdom@vnode:element(HSO))
) -> agnostic@vdom@vnode:element(HSO).
strong(Attrs, Children) ->
agnostic@element:element(<<"strong"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 527).
?DOC("\n").
-spec sub(
list(agnostic@vdom@vattr:attribute(HSU)),
list(agnostic@vdom@vnode:element(HSU))
) -> agnostic@vdom@vnode:element(HSU).
sub(Attrs, Children) ->
agnostic@element:element(<<"sub"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 535).
?DOC("\n").
-spec sup(
list(agnostic@vdom@vattr:attribute(HTA)),
list(agnostic@vdom@vnode:element(HTA))
) -> agnostic@vdom@vnode:element(HTA).
sup(Attrs, Children) ->
agnostic@element:element(<<"sup"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 543).
?DOC("\n").
-spec time(
list(agnostic@vdom@vattr:attribute(HTG)),
list(agnostic@vdom@vnode:element(HTG))
) -> agnostic@vdom@vnode:element(HTG).
time(Attrs, Children) ->
agnostic@element:element(<<"time"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 551).
?DOC("\n").
-spec u(
list(agnostic@vdom@vattr:attribute(HTM)),
list(agnostic@vdom@vnode:element(HTM))
) -> agnostic@vdom@vnode:element(HTM).
u(Attrs, Children) ->
agnostic@element:element(<<"u"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 559).
?DOC("\n").
-spec var(
list(agnostic@vdom@vattr:attribute(HTS)),
list(agnostic@vdom@vnode:element(HTS))
) -> agnostic@vdom@vnode:element(HTS).
var(Attrs, Children) ->
agnostic@element:element(<<"var"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 567).
?DOC("\n").
-spec wbr(list(agnostic@vdom@vattr:attribute(HTY))) -> agnostic@vdom@vnode:element(HTY).
wbr(Attrs) ->
agnostic@element:element(<<"wbr"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 574).
?DOC("\n").
-spec area(list(agnostic@vdom@vattr:attribute(HUC))) -> agnostic@vdom@vnode:element(HUC).
area(Attrs) ->
agnostic@element:element(<<"area"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 579).
?DOC("\n").
-spec audio(
list(agnostic@vdom@vattr:attribute(HUG)),
list(agnostic@vdom@vnode:element(HUG))
) -> agnostic@vdom@vnode:element(HUG).
audio(Attrs, Children) ->
agnostic@element:element(<<"audio"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 587).
?DOC("\n").
-spec img(list(agnostic@vdom@vattr:attribute(HUM))) -> agnostic@vdom@vnode:element(HUM).
img(Attrs) ->
agnostic@element:element(<<"img"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 593).
?DOC(" Used with <area> elements to define an image map (a clickable link area).\n").
-spec map(
list(agnostic@vdom@vattr:attribute(HUQ)),
list(agnostic@vdom@vnode:element(HUQ))
) -> agnostic@vdom@vnode:element(HUQ).
map(Attrs, Children) ->
agnostic@element:element(<<"map"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 601).
?DOC("\n").
-spec track(list(agnostic@vdom@vattr:attribute(HUW))) -> agnostic@vdom@vnode:element(HUW).
track(Attrs) ->
agnostic@element:element(<<"track"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 606).
?DOC("\n").
-spec video(
list(agnostic@vdom@vattr:attribute(HVA)),
list(agnostic@vdom@vnode:element(HVA))
) -> agnostic@vdom@vnode:element(HVA).
video(Attrs, Children) ->
agnostic@element:element(<<"video"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 616).
?DOC("\n").
-spec embed(list(agnostic@vdom@vattr:attribute(HVG))) -> agnostic@vdom@vnode:element(HVG).
embed(Attrs) ->
agnostic@element:element(<<"embed"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 621).
?DOC("\n").
-spec iframe(list(agnostic@vdom@vattr:attribute(HVK))) -> agnostic@vdom@vnode:element(HVK).
iframe(Attrs) ->
agnostic@element:element(<<"iframe"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 626).
?DOC("\n").
-spec object(list(agnostic@vdom@vattr:attribute(HVO))) -> agnostic@vdom@vnode:element(HVO).
object(Attrs) ->
agnostic@element:element(<<"object"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 631).
?DOC("\n").
-spec picture(
list(agnostic@vdom@vattr:attribute(HVS)),
list(agnostic@vdom@vnode:element(HVS))
) -> agnostic@vdom@vnode:element(HVS).
picture(Attrs, Children) ->
agnostic@element:element(<<"picture"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 639).
?DOC("\n").
-spec portal(list(agnostic@vdom@vattr:attribute(HVY))) -> agnostic@vdom@vnode:element(HVY).
portal(Attrs) ->
agnostic@element:element(<<"portal"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 644).
?DOC("\n").
-spec source(list(agnostic@vdom@vattr:attribute(HWC))) -> agnostic@vdom@vnode:element(HWC).
source(Attrs) ->
agnostic@element:element(<<"source"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 651).
?DOC("\n").
-spec math(
list(agnostic@vdom@vattr:attribute(HWG)),
list(agnostic@vdom@vnode:element(HWG))
) -> agnostic@vdom@vnode:element(HWG).
math(Attrs, Children) ->
agnostic@element:namespaced(
<<"http://www.w3.org/1998/Math/MathML"/utf8>>,
<<"math"/utf8>>,
Attrs,
Children
).
-file("src/agnostic/element/html.gleam", 659).
?DOC("\n").
-spec svg(
list(agnostic@vdom@vattr:attribute(HWM)),
list(agnostic@vdom@vnode:element(HWM))
) -> agnostic@vdom@vnode:element(HWM).
svg(Attrs, Children) ->
agnostic@element:namespaced(
<<"http://www.w3.org/2000/svg"/utf8>>,
<<"svg"/utf8>>,
Attrs,
Children
).
-file("src/agnostic/element/html.gleam", 669).
?DOC("\n").
-spec canvas(list(agnostic@vdom@vattr:attribute(HWS))) -> agnostic@vdom@vnode:element(HWS).
canvas(Attrs) ->
agnostic@element:element(<<"canvas"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 674).
?DOC("\n").
-spec noscript(
list(agnostic@vdom@vattr:attribute(HWW)),
list(agnostic@vdom@vnode:element(HWW))
) -> agnostic@vdom@vnode:element(HWW).
noscript(Attrs, Children) ->
agnostic@element:element(<<"noscript"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 682).
?DOC("\n").
-spec script(list(agnostic@vdom@vattr:attribute(HXC)), binary()) -> agnostic@vdom@vnode:element(HXC).
script(Attrs, Js) ->
unsafe_raw(<<""/utf8>>, <<"script"/utf8>>, Attrs, Js).
-file("src/agnostic/element/html.gleam", 689).
?DOC("\n").
-spec del(
list(agnostic@vdom@vattr:attribute(HXG)),
list(agnostic@vdom@vnode:element(HXG))
) -> agnostic@vdom@vnode:element(HXG).
del(Attrs, Children) ->
agnostic@element:element(<<"del"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 697).
?DOC("\n").
-spec ins(
list(agnostic@vdom@vattr:attribute(HXM)),
list(agnostic@vdom@vnode:element(HXM))
) -> agnostic@vdom@vnode:element(HXM).
ins(Attrs, Children) ->
agnostic@element:element(<<"ins"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 707).
?DOC("\n").
-spec caption(
list(agnostic@vdom@vattr:attribute(HXS)),
list(agnostic@vdom@vnode:element(HXS))
) -> agnostic@vdom@vnode:element(HXS).
caption(Attrs, Children) ->
agnostic@element:element(<<"caption"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 715).
?DOC("\n").
-spec col(list(agnostic@vdom@vattr:attribute(HXY))) -> agnostic@vdom@vnode:element(HXY).
col(Attrs) ->
agnostic@element:element(<<"col"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 720).
?DOC("\n").
-spec colgroup(
list(agnostic@vdom@vattr:attribute(HYC)),
list(agnostic@vdom@vnode:element(HYC))
) -> agnostic@vdom@vnode:element(HYC).
colgroup(Attrs, Children) ->
agnostic@element:element(<<"colgroup"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 728).
?DOC("\n").
-spec table(
list(agnostic@vdom@vattr:attribute(HYI)),
list(agnostic@vdom@vnode:element(HYI))
) -> agnostic@vdom@vnode:element(HYI).
table(Attrs, Children) ->
agnostic@element:element(<<"table"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 736).
?DOC("\n").
-spec tbody(
list(agnostic@vdom@vattr:attribute(HYO)),
list(agnostic@vdom@vnode:element(HYO))
) -> agnostic@vdom@vnode:element(HYO).
tbody(Attrs, Children) ->
agnostic@element:element(<<"tbody"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 744).
?DOC("\n").
-spec td(
list(agnostic@vdom@vattr:attribute(HYU)),
list(agnostic@vdom@vnode:element(HYU))
) -> agnostic@vdom@vnode:element(HYU).
td(Attrs, Children) ->
agnostic@element:element(<<"td"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 752).
?DOC("\n").
-spec tfoot(
list(agnostic@vdom@vattr:attribute(HZA)),
list(agnostic@vdom@vnode:element(HZA))
) -> agnostic@vdom@vnode:element(HZA).
tfoot(Attrs, Children) ->
agnostic@element:element(<<"tfoot"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 760).
?DOC("\n").
-spec th(
list(agnostic@vdom@vattr:attribute(HZG)),
list(agnostic@vdom@vnode:element(HZG))
) -> agnostic@vdom@vnode:element(HZG).
th(Attrs, Children) ->
agnostic@element:element(<<"th"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 768).
?DOC("\n").
-spec thead(
list(agnostic@vdom@vattr:attribute(HZM)),
list(agnostic@vdom@vnode:element(HZM))
) -> agnostic@vdom@vnode:element(HZM).
thead(Attrs, Children) ->
agnostic@element:element(<<"thead"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 776).
?DOC("\n").
-spec tr(
list(agnostic@vdom@vattr:attribute(HZS)),
list(agnostic@vdom@vnode:element(HZS))
) -> agnostic@vdom@vnode:element(HZS).
tr(Attrs, Children) ->
agnostic@element:element(<<"tr"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 786).
?DOC("\n").
-spec button(
list(agnostic@vdom@vattr:attribute(HZY)),
list(agnostic@vdom@vnode:element(HZY))
) -> agnostic@vdom@vnode:element(HZY).
button(Attrs, Children) ->
agnostic@element:element(<<"button"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 794).
?DOC("\n").
-spec datalist(
list(agnostic@vdom@vattr:attribute(IAE)),
list(agnostic@vdom@vnode:element(IAE))
) -> agnostic@vdom@vnode:element(IAE).
datalist(Attrs, Children) ->
agnostic@element:element(<<"datalist"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 802).
?DOC("\n").
-spec fieldset(
list(agnostic@vdom@vattr:attribute(IAK)),
list(agnostic@vdom@vnode:element(IAK))
) -> agnostic@vdom@vnode:element(IAK).
fieldset(Attrs, Children) ->
agnostic@element:element(<<"fieldset"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 810).
?DOC("\n").
-spec form(
list(agnostic@vdom@vattr:attribute(IAQ)),
list(agnostic@vdom@vnode:element(IAQ))
) -> agnostic@vdom@vnode:element(IAQ).
form(Attrs, Children) ->
agnostic@element:element(<<"form"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 818).
?DOC("\n").
-spec input(list(agnostic@vdom@vattr:attribute(IAW))) -> agnostic@vdom@vnode:element(IAW).
input(Attrs) ->
agnostic@element:element(<<"input"/utf8>>, Attrs, []).
-file("src/agnostic/element/html.gleam", 823).
?DOC("\n").
-spec label(
list(agnostic@vdom@vattr:attribute(IBA)),
list(agnostic@vdom@vnode:element(IBA))
) -> agnostic@vdom@vnode:element(IBA).
label(Attrs, Children) ->
agnostic@element:element(<<"label"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 831).
?DOC("\n").
-spec legend(
list(agnostic@vdom@vattr:attribute(IBG)),
list(agnostic@vdom@vnode:element(IBG))
) -> agnostic@vdom@vnode:element(IBG).
legend(Attrs, Children) ->
agnostic@element:element(<<"legend"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 839).
?DOC("\n").
-spec meter(
list(agnostic@vdom@vattr:attribute(IBM)),
list(agnostic@vdom@vnode:element(IBM))
) -> agnostic@vdom@vnode:element(IBM).
meter(Attrs, Children) ->
agnostic@element:element(<<"meter"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 847).
?DOC("\n").
-spec optgroup(
list(agnostic@vdom@vattr:attribute(IBS)),
list(agnostic@vdom@vnode:element(IBS))
) -> agnostic@vdom@vnode:element(IBS).
optgroup(Attrs, Children) ->
agnostic@element:element(<<"optgroup"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 855).
?DOC("\n").
-spec option(list(agnostic@vdom@vattr:attribute(IBY)), binary()) -> agnostic@vdom@vnode:element(IBY).
option(Attrs, Label) ->
agnostic@element:element(
<<"option"/utf8>>,
Attrs,
[agnostic@element:text(Label)]
).
-file("src/agnostic/element/html.gleam", 863).
?DOC("\n").
-spec output(
list(agnostic@vdom@vattr:attribute(ICC)),
list(agnostic@vdom@vnode:element(ICC))
) -> agnostic@vdom@vnode:element(ICC).
output(Attrs, Children) ->
agnostic@element:element(<<"output"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 871).
?DOC("\n").
-spec progress(
list(agnostic@vdom@vattr:attribute(ICI)),
list(agnostic@vdom@vnode:element(ICI))
) -> agnostic@vdom@vnode:element(ICI).
progress(Attrs, Children) ->
agnostic@element:element(<<"progress"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 879).
?DOC("\n").
-spec select(
list(agnostic@vdom@vattr:attribute(ICO)),
list(agnostic@vdom@vnode:element(ICO))
) -> agnostic@vdom@vnode:element(ICO).
select(Attrs, Children) ->
agnostic@element:element(<<"select"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 887).
?DOC("\n").
-spec textarea(list(agnostic@vdom@vattr:attribute(ICU)), binary()) -> agnostic@vdom@vnode:element(ICU).
textarea(Attrs, Content) ->
agnostic@element:element(
<<"textarea"/utf8>>,
[agnostic@attribute:property(
<<"value"/utf8>>,
gleam@json:string(Content)
) |
Attrs],
[agnostic@element:text(Content)]
).
-file("src/agnostic/element/html.gleam", 901).
?DOC("\n").
-spec details(
list(agnostic@vdom@vattr:attribute(ICY)),
list(agnostic@vdom@vnode:element(ICY))
) -> agnostic@vdom@vnode:element(ICY).
details(Attrs, Children) ->
agnostic@element:element(<<"details"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 909).
?DOC("\n").
-spec dialog(
list(agnostic@vdom@vattr:attribute(IDE)),
list(agnostic@vdom@vnode:element(IDE))
) -> agnostic@vdom@vnode:element(IDE).
dialog(Attrs, Children) ->
agnostic@element:element(<<"dialog"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 917).
?DOC("\n").
-spec summary(
list(agnostic@vdom@vattr:attribute(IDK)),
list(agnostic@vdom@vnode:element(IDK))
) -> agnostic@vdom@vnode:element(IDK).
summary(Attrs, Children) ->
agnostic@element:element(<<"summary"/utf8>>, Attrs, Children).
-file("src/agnostic/element/html.gleam", 927).
?DOC("\n").
-spec slot(
list(agnostic@vdom@vattr:attribute(IDQ)),
list(agnostic@vdom@vnode:element(IDQ))
) -> agnostic@vdom@vnode:element(IDQ).
slot(Attrs, Fallback) ->
agnostic@element:element(<<"slot"/utf8>>, Attrs, Fallback).
-file("src/agnostic/element/html.gleam", 935).
?DOC("\n").
-spec template(
list(agnostic@vdom@vattr:attribute(IDW)),
list(agnostic@vdom@vnode:element(IDW))
) -> agnostic@vdom@vnode:element(IDW).
template(Attrs, Children) ->
agnostic@element:element(<<"template"/utf8>>, Attrs, Children).