How to use htmlElement method in storybook-root

Best JavaScript code snippet using storybook-root

domTags.js

Source:domTags.js Github

copy

Full Screen

1// noinspection JSUnusedGlobalSymbols2import {createElement} from "./domDSL.js"3/**4 * Creates a 'a' HTML element.5 *6 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child7 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children8 *9 * @returns Promise<HTMLElement>10 */11export function a(attributes, ...children) {12 return createElement("a", attributes, ...children);13}14/**15 * Creates a 'abbr' HTML element.16 *17 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child18 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children19 *20 * @returns Promise<HTMLElement>21 */22export function abbr(attributes, ...children) {23 return createElement("abbr", attributes, ...children);24}25/**26 * Creates a 'acronym' HTML element.27 *28 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child29 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children30 *31 * @returns Promise<HTMLElement>32 */33export function acronym(attributes, ...children) {34 return createElement("acronym", attributes, ...children);35}36/**37 * Creates a 'address' HTML element.38 *39 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child40 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children41 *42 * @returns Promise<HTMLElement>43 */44export function address(attributes, ...children) {45 return createElement("address", attributes, ...children);46}47/**48 * Creates a 'applet' HTML element.49 *50 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child51 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children52 *53 * @returns Promise<HTMLElement>54 */55export function applet(attributes, ...children) {56 return createElement("applet", attributes, ...children);57}58/**59 * Creates a 'area' HTML element.60 *61 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child62 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children63 *64 * @returns Promise<HTMLElement>65 */66export function area(attributes, ...children) {67 return createElement("area", attributes, ...children);68}69/**70 * Creates a 'article' HTML element.71 *72 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child73 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children74 *75 * @returns Promise<HTMLElement>76 */77export function article(attributes, ...children) {78 return createElement("article", attributes, ...children);79}80/**81 * Creates a 'aside' HTML element.82 *83 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child84 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children85 *86 * @returns Promise<HTMLElement>87 */88export function aside(attributes, ...children) {89 return createElement("aside", attributes, ...children);90}91/**92 * Creates a 'audio' HTML element.93 *94 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child95 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children96 *97 * @returns Promise<HTMLElement>98 */99export function audio(attributes, ...children) {100 return createElement("audio", attributes, ...children);101}102/**103 * Creates a 'b' HTML element.104 *105 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child106 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children107 *108 * @returns Promise<HTMLElement>109 */110export function b(attributes, ...children) {111 return createElement("b", attributes, ...children);112}113/**114 * Creates a 'base' HTML element.115 *116 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child117 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children118 *119 * @returns Promise<HTMLElement>120 */121export function base(attributes, ...children) {122 return createElement("base", attributes, ...children);123}124/**125 * Creates a 'basefont' HTML element.126 *127 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child128 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children129 *130 * @returns Promise<HTMLElement>131 */132export function basefont(attributes, ...children) {133 return createElement("basefont", attributes, ...children);134}135/**136 * Creates a 'bdi' HTML element.137 *138 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child139 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children140 *141 * @returns Promise<HTMLElement>142 */143export function bdi(attributes, ...children) {144 return createElement("bdi", attributes, ...children);145}146/**147 * Creates a 'bdo' HTML element.148 *149 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child150 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children151 *152 * @returns Promise<HTMLElement>153 */154export function bdo(attributes, ...children) {155 return createElement("bdo", attributes, ...children);156}157/**158 * Creates a 'bgsound' HTML element.159 *160 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child161 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children162 *163 * @returns Promise<HTMLElement>164 */165export function bgsound(attributes, ...children) {166 return createElement("bgsound", attributes, ...children);167}168/**169 * Creates a 'big' HTML element.170 *171 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child172 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children173 *174 * @returns Promise<HTMLElement>175 */176export function big(attributes, ...children) {177 return createElement("big", attributes, ...children);178}179/**180 * Creates a 'blink' HTML element.181 *182 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child183 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children184 *185 * @returns Promise<HTMLElement>186 */187export function blink(attributes, ...children) {188 return createElement("blink", attributes, ...children);189}190/**191 * Creates a 'blockquote' HTML element.192 *193 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child194 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children195 *196 * @returns Promise<HTMLElement>197 */198export function blockquote(attributes, ...children) {199 return createElement("blockquote", attributes, ...children);200}201/**202 * Creates a 'body' HTML element.203 *204 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child205 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children206 *207 * @returns Promise<HTMLElement>208 */209export function body(attributes, ...children) {210 return createElement("body", attributes, ...children);211}212/**213 * Creates a 'br' HTML element.214 *215 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child216 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children217 *218 * @returns Promise<HTMLElement>219 */220export function br(attributes, ...children) {221 return createElement("br", attributes, ...children);222}223/**224 * Creates a 'button' HTML element.225 *226 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child227 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children228 *229 * @returns Promise<HTMLElement>230 */231export function button(attributes, ...children) {232 return createElement("button", attributes, ...children);233}234/**235 * Creates a 'canvas' HTML element.236 *237 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child238 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children239 *240 * @returns Promise<HTMLElement>241 */242export function canvas(attributes, ...children) {243 return createElement("canvas", attributes, ...children);244}245/**246 * Creates a 'caption' HTML element.247 *248 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child249 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children250 *251 * @returns Promise<HTMLElement>252 */253export function caption(attributes, ...children) {254 return createElement("caption", attributes, ...children);255}256/**257 * Creates a 'center' HTML element.258 *259 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child260 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children261 *262 * @returns Promise<HTMLElement>263 */264export function center(attributes, ...children) {265 return createElement("center", attributes, ...children);266}267/**268 * Creates a 'cite' HTML element.269 *270 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child271 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children272 *273 * @returns Promise<HTMLElement>274 */275export function cite(attributes, ...children) {276 return createElement("cite", attributes, ...children);277}278/**279 * Creates a 'code' HTML element.280 *281 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child282 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children283 *284 * @returns Promise<HTMLElement>285 */286export function code(attributes, ...children) {287 return createElement("code", attributes, ...children);288}289/**290 * Creates a 'col' HTML element.291 *292 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child293 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children294 *295 * @returns Promise<HTMLElement>296 */297export function col(attributes, ...children) {298 return createElement("col", attributes, ...children);299}300/**301 * Creates a 'colgroup' HTML element.302 *303 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child304 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children305 *306 * @returns Promise<HTMLElement>307 */308export function colgroup(attributes, ...children) {309 return createElement("colgroup", attributes, ...children);310}311/**312 * Creates a 'content' HTML element.313 *314 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child315 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children316 *317 * @returns Promise<HTMLElement>318 */319export function content(attributes, ...children) {320 return createElement("content", attributes, ...children);321}322/**323 * Creates a 'data' HTML element.324 *325 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child326 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children327 *328 * @returns Promise<HTMLElement>329 */330export function data(attributes, ...children) {331 return createElement("data", attributes, ...children);332}333/**334 * Creates a 'datalist' HTML element.335 *336 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child337 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children338 *339 * @returns Promise<HTMLElement>340 */341export function datalist(attributes, ...children) {342 return createElement("datalist", attributes, ...children);343}344/**345 * Creates a 'dd' HTML element.346 *347 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child348 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children349 *350 * @returns Promise<HTMLElement>351 */352export function dd(attributes, ...children) {353 return createElement("dd", attributes, ...children);354}355/**356 * Creates a 'decorator' HTML element.357 *358 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child359 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children360 *361 * @returns Promise<HTMLElement>362 */363export function decorator(attributes, ...children) {364 return createElement("decorator", attributes, ...children);365}366/**367 * Creates a 'del' HTML element.368 *369 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child370 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children371 *372 * @returns Promise<HTMLElement>373 */374export function del(attributes, ...children) {375 return createElement("del", attributes, ...children);376}377/**378 * Creates a 'details' HTML element.379 *380 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child381 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children382 *383 * @returns Promise<HTMLElement>384 */385export function details(attributes, ...children) {386 return createElement("details", attributes, ...children);387}388/**389 * Creates a 'dfn' HTML element.390 *391 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child392 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children393 *394 * @returns Promise<HTMLElement>395 */396export function dfn(attributes, ...children) {397 return createElement("dfn", attributes, ...children);398}399/**400 * Creates a 'dir' HTML element.401 *402 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child403 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children404 *405 * @returns Promise<HTMLElement>406 */407export function dir(attributes, ...children) {408 return createElement("dir", attributes, ...children);409}410/**411 * Creates a 'div' HTML element.412 *413 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child414 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children415 *416 * @returns Promise<HTMLElement>417 */418export function div(attributes, ...children) {419 return createElement("div", attributes, ...children);420}421/**422 * Creates a 'dl' HTML element.423 *424 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child425 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children426 *427 * @returns Promise<HTMLElement>428 */429export function dl(attributes, ...children) {430 return createElement("dl", attributes, ...children);431}432/**433 * Creates a 'dt' HTML element.434 *435 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child436 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children437 *438 * @returns Promise<HTMLElement>439 */440export function dt(attributes, ...children) {441 return createElement("dt", attributes, ...children);442}443/**444 * Creates a 'element' HTML element.445 *446 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child447 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children448 *449 * @returns Promise<HTMLElement>450 */451export function element(attributes, ...children) {452 return createElement("element", attributes, ...children);453}454/**455 * Creates a 'em' HTML element.456 *457 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child458 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children459 *460 * @returns Promise<HTMLElement>461 */462export function em(attributes, ...children) {463 return createElement("em", attributes, ...children);464}465/**466 * Creates a 'embed' HTML element.467 *468 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child469 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children470 *471 * @returns Promise<HTMLElement>472 */473export function embed(attributes, ...children) {474 return createElement("embed", attributes, ...children);475}476/**477 * Creates a 'fieldset' HTML element.478 *479 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child480 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children481 *482 * @returns Promise<HTMLElement>483 */484export function fieldset(attributes, ...children) {485 return createElement("fieldset", attributes, ...children);486}487/**488 * Creates a 'figcaption' HTML element.489 *490 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child491 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children492 *493 * @returns Promise<HTMLElement>494 */495export function figcaption(attributes, ...children) {496 return createElement("figcaption", attributes, ...children);497}498/**499 * Creates a 'figure' HTML element.500 *501 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child502 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children503 *504 * @returns Promise<HTMLElement>505 */506export function figure(attributes, ...children) {507 return createElement("figure", attributes, ...children);508}509/**510 * Creates a 'font' HTML element.511 *512 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child513 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children514 *515 * @returns Promise<HTMLElement>516 */517export function font(attributes, ...children) {518 return createElement("font", attributes, ...children);519}520/**521 * Creates a 'footer' HTML element.522 *523 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child524 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children525 *526 * @returns Promise<HTMLElement>527 */528export function footer(attributes, ...children) {529 return createElement("footer", attributes, ...children);530}531/**532 * Creates a 'form' HTML element.533 *534 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child535 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children536 *537 * @returns Promise<HTMLElement>538 */539export function form(attributes, ...children) {540 return createElement("form", attributes, ...children);541}542/**543 * Creates a 'frame' HTML element.544 *545 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child546 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children547 *548 * @returns Promise<HTMLElement>549 */550export function frame(attributes, ...children) {551 return createElement("frame", attributes, ...children);552}553/**554 * Creates a 'frameset' HTML element.555 *556 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child557 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children558 *559 * @returns Promise<HTMLElement>560 */561export function frameset(attributes, ...children) {562 return createElement("frameset", attributes, ...children);563}564/**565 * Creates a 'h1' HTML element.566 *567 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child568 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children569 *570 * @returns Promise<HTMLElement>571 */572export function h1(attributes, ...children) {573 return createElement("h1", attributes, ...children);574}575/**576 * Creates a 'h2' HTML element.577 *578 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child579 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children580 *581 * @returns Promise<HTMLElement>582 */583export function h2(attributes, ...children) {584 return createElement("h2", attributes, ...children);585}586/**587 * Creates a 'h3' HTML element.588 *589 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child590 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children591 *592 * @returns Promise<HTMLElement>593 */594export function h3(attributes, ...children) {595 return createElement("h3", attributes, ...children);596}597/**598 * Creates a 'h4' HTML element.599 *600 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child601 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children602 *603 * @returns Promise<HTMLElement>604 */605export function h4(attributes, ...children) {606 return createElement("h4", attributes, ...children);607}608/**609 * Creates a 'h5' HTML element.610 *611 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child612 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children613 *614 * @returns Promise<HTMLElement>615 */616export function h5(attributes, ...children) {617 return createElement("h5", attributes, ...children);618}619/**620 * Creates a 'h6' HTML element.621 *622 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child623 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children624 *625 * @returns Promise<HTMLElement>626 */627export function h6(attributes, ...children) {628 return createElement("h6", attributes, ...children);629}630/**631 * Creates a 'head' HTML element.632 *633 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child634 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children635 *636 * @returns Promise<HTMLElement>637 */638export function head(attributes, ...children) {639 return createElement("head", attributes, ...children);640}641/**642 * Creates a 'header' HTML element.643 *644 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child645 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children646 *647 * @returns Promise<HTMLElement>648 */649export function header(attributes, ...children) {650 return createElement("header", attributes, ...children);651}652/**653 * Creates a 'hgroup' HTML element.654 *655 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child656 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children657 *658 * @returns Promise<HTMLElement>659 */660export function hgroup(attributes, ...children) {661 return createElement("hgroup", attributes, ...children);662}663/**664 * Creates a 'hr' HTML element.665 *666 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child667 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children668 *669 * @returns Promise<HTMLElement>670 */671export function hr(attributes, ...children) {672 return createElement("hr", attributes, ...children);673}674/**675 * Creates a 'html' HTML element.676 *677 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child678 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children679 *680 * @returns Promise<HTMLElement>681 */682export function html(attributes, ...children) {683 return createElement("html", attributes, ...children);684}685/**686 * Creates a 'i' HTML element.687 *688 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child689 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children690 *691 * @returns Promise<HTMLElement>692 */693export function i(attributes, ...children) {694 return createElement("i", attributes, ...children);695}696/**697 * Creates a 'iframe' HTML element.698 *699 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child700 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children701 *702 * @returns Promise<HTMLElement>703 */704export function iframe(attributes, ...children) {705 return createElement("iframe", attributes, ...children);706}707/**708 * Creates a 'img' HTML element.709 *710 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child711 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children712 *713 * @returns Promise<HTMLElement>714 */715export function img(attributes, ...children) {716 return createElement("img", attributes, ...children);717}718/**719 * Creates a 'input' HTML element.720 *721 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child722 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children723 *724 * @returns Promise<HTMLElement>725 */726export function input(attributes, ...children) {727 return createElement("input", attributes, ...children);728}729/**730 * Creates a 'ins' HTML element.731 *732 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child733 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children734 *735 * @returns Promise<HTMLElement>736 */737export function ins(attributes, ...children) {738 return createElement("ins", attributes, ...children);739}740/**741 * Creates a 'isindex' HTML element.742 *743 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child744 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children745 *746 * @returns Promise<HTMLElement>747 */748export function isindex(attributes, ...children) {749 return createElement("isindex", attributes, ...children);750}751/**752 * Creates a 'kbd' HTML element.753 *754 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child755 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children756 *757 * @returns Promise<HTMLElement>758 */759export function kbd(attributes, ...children) {760 return createElement("kbd", attributes, ...children);761}762/**763 * Creates a 'keygen' HTML element.764 *765 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child766 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children767 *768 * @returns Promise<HTMLElement>769 */770export function keygen(attributes, ...children) {771 return createElement("keygen", attributes, ...children);772}773/**774 * Creates a 'label' HTML element.775 *776 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child777 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children778 *779 * @returns Promise<HTMLElement>780 */781export function label(attributes, ...children) {782 return createElement("label", attributes, ...children);783}784/**785 * Creates a 'legend' HTML element.786 *787 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child788 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children789 *790 * @returns Promise<HTMLElement>791 */792export function legend(attributes, ...children) {793 return createElement("legend", attributes, ...children);794}795/**796 * Creates a 'li' HTML element.797 *798 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child799 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children800 *801 * @returns Promise<HTMLElement>802 */803export function li(attributes, ...children) {804 return createElement("li", attributes, ...children);805}806/**807 * Creates a 'link' HTML element.808 *809 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child810 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children811 *812 * @returns Promise<HTMLElement>813 */814export function link(attributes, ...children) {815 return createElement("link", attributes, ...children);816}817/**818 * Creates a 'listing' HTML element.819 *820 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child821 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children822 *823 * @returns Promise<HTMLElement>824 */825export function listing(attributes, ...children) {826 return createElement("listing", attributes, ...children);827}828/**829 * Creates a 'main' HTML element.830 *831 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child832 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children833 *834 * @returns Promise<HTMLElement>835 */836export function main(attributes, ...children) {837 return createElement("main", attributes, ...children);838}839/**840 * Creates a 'map' HTML element.841 *842 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child843 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children844 *845 * @returns Promise<HTMLElement>846 */847export function map(attributes, ...children) {848 return createElement("map", attributes, ...children);849}850/**851 * Creates a 'mark' HTML element.852 *853 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child854 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children855 *856 * @returns Promise<HTMLElement>857 */858export function mark(attributes, ...children) {859 return createElement("mark", attributes, ...children);860}861/**862 * Creates a 'marquee' HTML element.863 *864 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child865 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children866 *867 * @returns Promise<HTMLElement>868 */869export function marquee(attributes, ...children) {870 return createElement("marquee", attributes, ...children);871}872/**873 * Creates a 'menu' HTML element.874 *875 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child876 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children877 *878 * @returns Promise<HTMLElement>879 */880export function menu(attributes, ...children) {881 return createElement("menu", attributes, ...children);882}883/**884 * Creates a 'menuitem' HTML element.885 *886 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child887 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children888 *889 * @returns Promise<HTMLElement>890 */891export function menuitem(attributes, ...children) {892 return createElement("menuitem", attributes, ...children);893}894/**895 * Creates a 'meta' HTML element.896 *897 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child898 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children899 *900 * @returns Promise<HTMLElement>901 */902export function meta(attributes, ...children) {903 return createElement("meta", attributes, ...children);904}905/**906 * Creates a 'meter' HTML element.907 *908 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child909 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children910 *911 * @returns Promise<HTMLElement>912 */913export function meter(attributes, ...children) {914 return createElement("meter", attributes, ...children);915}916/**917 * Creates a 'nav' HTML element.918 *919 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child920 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children921 *922 * @returns Promise<HTMLElement>923 */924export function nav(attributes, ...children) {925 return createElement("nav", attributes, ...children);926}927/**928 * Creates a 'nobr' HTML element.929 *930 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child931 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children932 *933 * @returns Promise<HTMLElement>934 */935export function nobr(attributes, ...children) {936 return createElement("nobr", attributes, ...children);937}938/**939 * Creates a 'noframes' HTML element.940 *941 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child942 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children943 *944 * @returns Promise<HTMLElement>945 */946export function noframes(attributes, ...children) {947 return createElement("noframes", attributes, ...children);948}949/**950 * Creates a 'noscript' HTML element.951 *952 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child953 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children954 *955 * @returns Promise<HTMLElement>956 */957export function noscript(attributes, ...children) {958 return createElement("noscript", attributes, ...children);959}960/**961 * Creates a 'object' HTML element.962 *963 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child964 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children965 *966 * @returns Promise<HTMLElement>967 */968export function object(attributes, ...children) {969 return createElement("object", attributes, ...children);970}971/**972 * Creates a 'ol' HTML element.973 *974 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child975 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children976 *977 * @returns Promise<HTMLElement>978 */979export function ol(attributes, ...children) {980 return createElement("ol", attributes, ...children);981}982/**983 * Creates a 'optgroup' HTML element.984 *985 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child986 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children987 *988 * @returns Promise<HTMLElement>989 */990export function optgroup(attributes, ...children) {991 return createElement("optgroup", attributes, ...children);992}993/**994 * Creates a 'option' HTML element.995 *996 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child997 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children998 *999 * @returns Promise<HTMLElement>1000 */1001export function option(attributes, ...children) {1002 return createElement("option", attributes, ...children);1003}1004/**1005 * Creates a 'output' HTML element.1006 *1007 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1008 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1009 *1010 * @returns Promise<HTMLElement>1011 */1012export function output(attributes, ...children) {1013 return createElement("output", attributes, ...children);1014}1015/**1016 * Creates a 'p' HTML element.1017 *1018 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1019 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1020 *1021 * @returns Promise<HTMLElement>1022 */1023export function p(attributes, ...children) {1024 return createElement("p", attributes, ...children);1025}1026/**1027 * Creates a 'param' HTML element.1028 *1029 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1030 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1031 *1032 * @returns Promise<HTMLElement>1033 */1034export function param(attributes, ...children) {1035 return createElement("param", attributes, ...children);1036}1037/**1038 * Creates a 'plaintext' HTML element.1039 *1040 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1041 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1042 *1043 * @returns Promise<HTMLElement>1044 */1045export function plaintext(attributes, ...children) {1046 return createElement("plaintext", attributes, ...children);1047}1048/**1049 * Creates a 'pre' HTML element.1050 *1051 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1052 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1053 *1054 * @returns Promise<HTMLElement>1055 */1056export function pre(attributes, ...children) {1057 return createElement("pre", attributes, ...children);1058}1059/**1060 * Creates a 'progress' HTML element.1061 *1062 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1063 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1064 *1065 * @returns Promise<HTMLElement>1066 */1067export function progress(attributes, ...children) {1068 return createElement("progress", attributes, ...children);1069}1070/**1071 * Creates a 'q' HTML element.1072 *1073 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1074 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1075 *1076 * @returns Promise<HTMLElement>1077 */1078export function q(attributes, ...children) {1079 return createElement("q", attributes, ...children);1080}1081/**1082 * Creates a 'rp' HTML element.1083 *1084 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1085 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1086 *1087 * @returns Promise<HTMLElement>1088 */1089export function rp(attributes, ...children) {1090 return createElement("rp", attributes, ...children);1091}1092/**1093 * Creates a 'rt' HTML element.1094 *1095 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1096 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1097 *1098 * @returns Promise<HTMLElement>1099 */1100export function rt(attributes, ...children) {1101 return createElement("rt", attributes, ...children);1102}1103/**1104 * Creates a 'ruby' HTML element.1105 *1106 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1107 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1108 *1109 * @returns Promise<HTMLElement>1110 */1111export function ruby(attributes, ...children) {1112 return createElement("ruby", attributes, ...children);1113}1114/**1115 * Creates a 's' HTML element.1116 *1117 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1118 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1119 *1120 * @returns Promise<HTMLElement>1121 */1122export function s(attributes, ...children) {1123 return createElement("s", attributes, ...children);1124}1125/**1126 * Creates a 'samp' HTML element.1127 *1128 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1129 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1130 *1131 * @returns Promise<HTMLElement>1132 */1133export function samp(attributes, ...children) {1134 return createElement("samp", attributes, ...children);1135}1136/**1137 * Creates a 'script' HTML element.1138 *1139 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1140 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1141 *1142 * @returns Promise<HTMLElement>1143 */1144export function script(attributes, ...children) {1145 return createElement("script", attributes, ...children);1146}1147/**1148 * Creates a 'section' HTML element.1149 *1150 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1151 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1152 *1153 * @returns Promise<HTMLElement>1154 */1155export function section(attributes, ...children) {1156 return createElement("section", attributes, ...children);1157}1158/**1159 * Creates a 'select' HTML element.1160 *1161 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1162 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1163 *1164 * @returns Promise<HTMLElement>1165 */1166export function select(attributes, ...children) {1167 return createElement("select", attributes, ...children);1168}1169/**1170 * Creates a 'shadow' HTML element.1171 *1172 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1173 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1174 *1175 * @returns Promise<HTMLElement>1176 */1177export function shadow(attributes, ...children) {1178 return createElement("shadow", attributes, ...children);1179}1180/**1181 * Creates a 'small' HTML element.1182 *1183 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1184 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1185 *1186 * @returns Promise<HTMLElement>1187 */1188export function small(attributes, ...children) {1189 return createElement("small", attributes, ...children);1190}1191/**1192 * Creates a 'source' HTML element.1193 *1194 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1195 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1196 *1197 * @returns Promise<HTMLElement>1198 */1199export function source(attributes, ...children) {1200 return createElement("source", attributes, ...children);1201}1202/**1203 * Creates a 'spacer' HTML element.1204 *1205 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1206 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1207 *1208 * @returns Promise<HTMLElement>1209 */1210export function spacer(attributes, ...children) {1211 return createElement("spacer", attributes, ...children);1212}1213/**1214 * Creates a 'span' HTML element.1215 *1216 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1217 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1218 *1219 * @returns Promise<HTMLElement>1220 */1221export function span(attributes, ...children) {1222 return createElement("span", attributes, ...children);1223}1224/**1225 * Creates a 'strike' HTML element.1226 *1227 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1228 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1229 *1230 * @returns Promise<HTMLElement>1231 */1232export function strike(attributes, ...children) {1233 return createElement("strike", attributes, ...children);1234}1235/**1236 * Creates a 'strong' HTML element.1237 *1238 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1239 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1240 *1241 * @returns Promise<HTMLElement>1242 */1243export function strong(attributes, ...children) {1244 return createElement("strong", attributes, ...children);1245}1246/**1247 * Creates a 'style' HTML element.1248 *1249 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1250 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1251 *1252 * @returns Promise<HTMLElement>1253 */1254export function style(attributes, ...children) {1255 return createElement("style", attributes, ...children);1256}1257/**1258 * Creates a 'sub' HTML element.1259 *1260 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1261 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1262 *1263 * @returns Promise<HTMLElement>1264 */1265export function sub(attributes, ...children) {1266 return createElement("sub", attributes, ...children);1267}1268/**1269 * Creates a 'summary' HTML element.1270 *1271 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1272 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1273 *1274 * @returns Promise<HTMLElement>1275 */1276export function summary(attributes, ...children) {1277 return createElement("summary", attributes, ...children);1278}1279/**1280 * Creates a 'sup' HTML element.1281 *1282 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1283 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1284 *1285 * @returns Promise<HTMLElement>1286 */1287export function sup(attributes, ...children) {1288 return createElement("sup", attributes, ...children);1289}1290/**1291 * Creates a 'table' HTML element.1292 *1293 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1294 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1295 *1296 * @returns Promise<HTMLElement>1297 */1298export function table(attributes, ...children) {1299 return createElement("table", attributes, ...children);1300}1301/**1302 * Creates a 'tbody' HTML element.1303 *1304 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1305 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1306 *1307 * @returns Promise<HTMLElement>1308 */1309export function tbody(attributes, ...children) {1310 return createElement("tbody", attributes, ...children);1311}1312/**1313 * Creates a 'td' HTML element.1314 *1315 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1316 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1317 *1318 * @returns Promise<HTMLElement>1319 */1320export function td(attributes, ...children) {1321 return createElement("td", attributes, ...children);1322}1323/**1324 * Creates a 'template' HTML element.1325 *1326 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1327 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1328 *1329 * @returns Promise<HTMLElement>1330 */1331export function template(attributes, ...children) {1332 return createElement("template", attributes, ...children);1333}1334/**1335 * Creates a 'textarea' HTML element.1336 *1337 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1338 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1339 *1340 * @returns Promise<HTMLElement>1341 */1342export function textarea(attributes, ...children) {1343 return createElement("textarea", attributes, ...children);1344}1345/**1346 * Creates a 'tfoot' HTML element.1347 *1348 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1349 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1350 *1351 * @returns Promise<HTMLElement>1352 */1353export function tfoot(attributes, ...children) {1354 return createElement("tfoot", attributes, ...children);1355}1356/**1357 * Creates a 'th' HTML element.1358 *1359 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1360 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1361 *1362 * @returns Promise<HTMLElement>1363 */1364export function th(attributes, ...children) {1365 return createElement("th", attributes, ...children);1366}1367/**1368 * Creates a 'thead' HTML element.1369 *1370 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1371 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1372 *1373 * @returns Promise<HTMLElement>1374 */1375export function thead(attributes, ...children) {1376 return createElement("thead", attributes, ...children);1377}1378/**1379 * Creates a 'time' HTML element.1380 *1381 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1382 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1383 *1384 * @returns Promise<HTMLElement>1385 */1386export function time(attributes, ...children) {1387 return createElement("time", attributes, ...children);1388}1389/**1390 * Creates a 'title' HTML element.1391 *1392 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1393 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1394 *1395 * @returns Promise<HTMLElement>1396 */1397export function title(attributes, ...children) {1398 return createElement("title", attributes, ...children);1399}1400/**1401 * Creates a 'tr' HTML element.1402 *1403 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1404 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1405 *1406 * @returns Promise<HTMLElement>1407 */1408export function tr(attributes, ...children) {1409 return createElement("tr", attributes, ...children);1410}1411/**1412 * Creates a 'track' HTML element.1413 *1414 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1415 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1416 *1417 * @returns Promise<HTMLElement>1418 */1419export function track(attributes, ...children) {1420 return createElement("track", attributes, ...children);1421}1422/**1423 * Creates a 'tt' HTML element.1424 *1425 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1426 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1427 *1428 * @returns Promise<HTMLElement>1429 */1430export function tt(attributes, ...children) {1431 return createElement("tt", attributes, ...children);1432}1433/**1434 * Creates a 'u' HTML element.1435 *1436 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1437 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1438 *1439 * @returns Promise<HTMLElement>1440 */1441export function u(attributes, ...children) {1442 return createElement("u", attributes, ...children);1443}1444/**1445 * Creates a 'ul' HTML element.1446 *1447 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1448 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1449 *1450 * @returns Promise<HTMLElement>1451 */1452export function ul(attributes, ...children) {1453 return createElement("ul", attributes, ...children);1454}1455/**1456 * Creates a 'video' HTML element.1457 *1458 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1459 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1460 *1461 * @returns Promise<HTMLElement>1462 */1463export function video(attributes, ...children) {1464 return createElement("video", attributes, ...children);1465}1466/**1467 * Creates a 'wbr' HTML element.1468 *1469 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1470 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1471 *1472 * @returns Promise<HTMLElement>1473 */1474export function wbr(attributes, ...children) {1475 return createElement("wbr", attributes, ...children);1476}1477/**1478 * Creates a 'xmp' HTML element.1479 *1480 * @param {Object | Promise<HTMLElement> | HTMLElement | string} [attributes] element attributes or an element child1481 * @param {Promise<HTMLElement> | HTMLElement | string} [children] element children1482 *1483 * @returns Promise<HTMLElement>1484 */1485export function xmp(attributes, ...children) {1486 return createElement("xmp", attributes, ...children);...

Full Screen

Full Screen

global.d.ts

Source:global.d.ts Github

copy

Full Screen

1/*2React projects that don't include the DOM library need these interfaces to compile.3React Native applications use React, but there is no DOM available. The JavaScript runtime4is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.5*/6interface Event { }7interface AnimationEvent extends Event { }8interface ClipboardEvent extends Event { }9interface CompositionEvent extends Event { }10interface DragEvent extends Event { }11interface FocusEvent extends Event { }12interface KeyboardEvent extends Event { }13interface MouseEvent extends Event { }14interface TouchEvent extends Event { }15interface PointerEvent extends Event { }16interface TransitionEvent extends Event { }17interface UIEvent extends Event { }18interface WheelEvent extends Event { }19interface EventTarget { }20interface Document { }21interface DataTransfer { }22interface StyleMedia { }23interface Element { }24interface HTMLElement extends Element { }25interface HTMLAnchorElement extends HTMLElement { }26interface HTMLAreaElement extends HTMLElement { }27interface HTMLAudioElement extends HTMLElement { }28interface HTMLBaseElement extends HTMLElement { }29interface HTMLBodyElement extends HTMLElement { }30interface HTMLBRElement extends HTMLElement { }31interface HTMLButtonElement extends HTMLElement { }32interface HTMLCanvasElement extends HTMLElement { }33interface HTMLDataElement extends HTMLElement { }34interface HTMLDataListElement extends HTMLElement { }35interface HTMLDialogElement extends HTMLElement { }36interface HTMLDivElement extends HTMLElement { }37interface HTMLDListElement extends HTMLElement { }38interface HTMLEmbedElement extends HTMLElement { }39interface HTMLFieldSetElement extends HTMLElement { }40interface HTMLFormElement extends HTMLElement { }41interface HTMLHeadingElement extends HTMLElement { }42interface HTMLHeadElement extends HTMLElement { }43interface HTMLHRElement extends HTMLElement { }44interface HTMLHtmlElement extends HTMLElement { }45interface HTMLIFrameElement extends HTMLElement { }46interface HTMLImageElement extends HTMLElement { }47interface HTMLInputElement extends HTMLElement { }48interface HTMLModElement extends HTMLElement { }49interface HTMLLabelElement extends HTMLElement { }50interface HTMLLegendElement extends HTMLElement { }51interface HTMLLIElement extends HTMLElement { }52interface HTMLLinkElement extends HTMLElement { }53interface HTMLMapElement extends HTMLElement { }54interface HTMLMetaElement extends HTMLElement { }55interface HTMLObjectElement extends HTMLElement { }56interface HTMLOListElement extends HTMLElement { }57interface HTMLOptGroupElement extends HTMLElement { }58interface HTMLOptionElement extends HTMLElement { }59interface HTMLParagraphElement extends HTMLElement { }60interface HTMLParamElement extends HTMLElement { }61interface HTMLPreElement extends HTMLElement { }62interface HTMLProgressElement extends HTMLElement { }63interface HTMLQuoteElement extends HTMLElement { }64interface HTMLScriptElement extends HTMLElement { }65interface HTMLSelectElement extends HTMLElement { }66interface HTMLSourceElement extends HTMLElement { }67interface HTMLSpanElement extends HTMLElement { }68interface HTMLStyleElement extends HTMLElement { }69interface HTMLTableElement extends HTMLElement { }70interface HTMLTableColElement extends HTMLElement { }71interface HTMLTableDataCellElement extends HTMLElement { }72interface HTMLTableHeaderCellElement extends HTMLElement { }73interface HTMLTableRowElement extends HTMLElement { }74interface HTMLTableSectionElement extends HTMLElement { }75interface HTMLTemplateElement extends HTMLElement { }76interface HTMLTextAreaElement extends HTMLElement { }77interface HTMLTitleElement extends HTMLElement { }78interface HTMLTrackElement extends HTMLElement { }79interface HTMLUListElement extends HTMLElement { }80interface HTMLVideoElement extends HTMLElement { }81interface HTMLWebViewElement extends HTMLElement { }82interface SVGElement extends Element { }83interface SVGSVGElement extends SVGElement { }84interface SVGCircleElement extends SVGElement { }85interface SVGClipPathElement extends SVGElement { }86interface SVGDefsElement extends SVGElement { }87interface SVGDescElement extends SVGElement { }88interface SVGEllipseElement extends SVGElement { }89interface SVGFEBlendElement extends SVGElement { }90interface SVGFEColorMatrixElement extends SVGElement { }91interface SVGFEComponentTransferElement extends SVGElement { }92interface SVGFECompositeElement extends SVGElement { }93interface SVGFEConvolveMatrixElement extends SVGElement { }94interface SVGFEDiffuseLightingElement extends SVGElement { }95interface SVGFEDisplacementMapElement extends SVGElement { }96interface SVGFEDistantLightElement extends SVGElement { }97interface SVGFEDropShadowElement extends SVGElement { }98interface SVGFEFloodElement extends SVGElement { }99interface SVGFEFuncAElement extends SVGElement { }100interface SVGFEFuncBElement extends SVGElement { }101interface SVGFEFuncGElement extends SVGElement { }102interface SVGFEFuncRElement extends SVGElement { }103interface SVGFEGaussianBlurElement extends SVGElement { }104interface SVGFEImageElement extends SVGElement { }105interface SVGFEMergeElement extends SVGElement { }106interface SVGFEMergeNodeElement extends SVGElement { }107interface SVGFEMorphologyElement extends SVGElement { }108interface SVGFEOffsetElement extends SVGElement { }109interface SVGFEPointLightElement extends SVGElement { }110interface SVGFESpecularLightingElement extends SVGElement { }111interface SVGFESpotLightElement extends SVGElement { }112interface SVGFETileElement extends SVGElement { }113interface SVGFETurbulenceElement extends SVGElement { }114interface SVGFilterElement extends SVGElement { }115interface SVGForeignObjectElement extends SVGElement { }116interface SVGGElement extends SVGElement { }117interface SVGImageElement extends SVGElement { }118interface SVGLineElement extends SVGElement { }119interface SVGLinearGradientElement extends SVGElement { }120interface SVGMarkerElement extends SVGElement { }121interface SVGMaskElement extends SVGElement { }122interface SVGMetadataElement extends SVGElement { }123interface SVGPathElement extends SVGElement { }124interface SVGPatternElement extends SVGElement { }125interface SVGPolygonElement extends SVGElement { }126interface SVGPolylineElement extends SVGElement { }127interface SVGRadialGradientElement extends SVGElement { }128interface SVGRectElement extends SVGElement { }129interface SVGStopElement extends SVGElement { }130interface SVGSwitchElement extends SVGElement { }131interface SVGSymbolElement extends SVGElement { }132interface SVGTextElement extends SVGElement { }133interface SVGTextPathElement extends SVGElement { }134interface SVGTSpanElement extends SVGElement { }135interface SVGUseElement extends SVGElement { }136interface SVGViewElement extends SVGElement { }137interface Text { }138interface TouchList { }...

Full Screen

Full Screen

constants.ts

Source:constants.ts Github

copy

Full Screen

1export const INPUT = document.querySelector('input');2export const WON: HTMLElement = document.getElementById('won') as HTMLElement;3export const BTN_PLAY: HTMLElement = document.getElementById(4 'play'5) as HTMLElement;6const TOWER0: HTMLElement = document.getElementById('pic0') as HTMLElement;7const TOWER1: HTMLElement = document.getElementById('pic1') as HTMLElement;8const TOWER2: HTMLElement = document.getElementById('pic2') as HTMLElement;9export const TOWERS: HTMLElement[] = [TOWER0, TOWER1, TOWER2];10const TOWER_AREA0: HTMLElement = document.getElementById(11 'pic-area-0'12) as HTMLElement;13const TOWER_AREA1: HTMLElement = document.getElementById(14 'pic-area-1'15) as HTMLElement;16const TOWER_AREA2: HTMLElement = document.getElementById(17 'pic-area-2'18) as HTMLElement;19export const TOWERS_AREAS: HTMLElement[] = [TOWER_AREA0, TOWER_AREA1, TOWER_AREA2];20TOWER_AREA0.style.width = (document.body.clientWidth / 50).toString() + 'px';21TOWER_AREA1.style.width = (document.body.clientWidth / 50).toString() + 'px';22TOWER_AREA2.style.width = (document.body.clientWidth / 50).toString() + 'px';23const DROP_AREA0: HTMLElement = document.getElementById('DROP-AREA-0') as HTMLElement;24const DROP_AREA1: HTMLElement = document.getElementById('DROP-AREA-1') as HTMLElement;25const DROP_AREA2: HTMLElement = document.getElementById('DROP-AREA-2') as HTMLElement;26export const DROP_AREAS: HTMLElement[] = [DROP_AREA0, DROP_AREA1, DROP_AREA2];...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { configure } from '@storybook/react';2import { addDecorator } from '@storybook/react';3import { withA11y } from '@storybook/addon-a11y';4import { withTests } from '@storybook/addon-jest';5import results from '../.jest-test-results.json';6addDecorator(withA11y);7addDecorator(8 withTests({9 })10);11configure(require.context('../src', true, /\.stories\.js$/), module);12import { addDecorator } from '@storybook/react';13import { withA11y } from '@storybook/addon-a11y';14import { withTests } from '@storybook/addon-jest';15import results from '../.jest-test-results.json';16addDecorator(withA11y);17addDecorator(18 withTests({19 })20);21import '@storybook/addon-actions/register';22import '@storybook/addon-knobs/register';23import '@storybook/addon-links/register';24import '@storybook/addon-notes/register';25import '@storybook/addon-viewport/register';26const path = require('path');27module.exports = ({ config }) => {28 config.module.rules.push({29 test: /\.(ts|tsx)$/,30 loader: require.resolve('babel-loader'),31 options: {32 presets: [['react-app', { flow: false, typescript: true }]],33 },34 });35 config.resolve.extensions.push('.ts', '.tsx');36 return config;37};38{39 "compilerOptions": {

Full Screen

Using AI Code Generation

copy

Full Screen

1const storybookRoot = await this.driver.findElement(By.css('storybook-root'));2const htmlElement = await storybookRoot.getWebElement();3const storybookRoot = await this.driver.findElement(By.css('storybook-root'));4const htmlElement = await storybookRoot.getWebElement();5const storybookRoot = await this.driver.findElement(By.css('storybook-root'));6const htmlElement = await storybookRoot.getWebElement();7const storybookRoot = await this.driver.findElement(By.css('storybook-root'));8const htmlElement = await storybookRoot.getWebElement();9const storybookRoot = await this.driver.findElement(By.css('storybook-root'));10const htmlElement = await storybookRoot.getWebElement();11const storybookRoot = await this.driver.findElement(By.css('storybook-root'));12const htmlElement = await storybookRoot.getWebElement();13const storybookRoot = await this.driver.findElement(By.css('storybook-root'));14const htmlElement = await storybookRoot.getWebElement();15const storybookRoot = await this.driver.findElement(By.css('storybook-root'));16const htmlElement = await storybookRoot.getWebElement();17const storybookRoot = await this.driver.findElement(By.css('storybook-root'));18const htmlElement = await storybookRoot.getWebElement();19const storybookRoot = await this.driver.findElement(By.css('storybook-root'));20const htmlElement = await storybookRoot.getWebElement();21const storybookRoot = await this.driver.findElement(By.css('storybook-root'));22const htmlElement = await storybookRoot.getWebElement();23const storybookRoot = await this.driver.findElement(By.css('storybook-root'));24const htmlElement = await storybookRoot.getWebElement();25const storybookRoot = await this.driver.findElement(By.css('storybook-root'));26const htmlElement = await storybookRoot.getWebElement();

Full Screen

Using AI Code Generation

copy

Full Screen

1const htmlElement = require('storybook-root').htmlElement;2const storybookRoot = htmlElement('storybook-root');3const storybookStory = htmlElement('storybook-story');4const storybookPreview = htmlElement('storybook-preview');5const storybookPreview = storybookRoot.$('storybook-preview');6const storybookStory = storybookPreview.$('storybook-story');7const storybookStory = storybookStory.$('storybook-preview');8const htmlElement = require('storybook-root').htmlElement;9const storybookRoot = htmlElement('storybook-root');10const storybookStory = htmlElement('storybook-story');11const storybookPreview = htmlElement('storybook-preview');12const storybookPreview = storybookRoot.$('storybook-preview');13const storybookStory = storybookPreview.$('storybook-story');14const storybookStory = storybookStory.$('storybook-preview');15const htmlElement = require('storybook-root').htmlElement;16const storybookRoot = htmlElement('storybook-root');17const storybookStory = htmlElement('storybook-story');18const storybookPreview = htmlElement('storybook-preview');19const storybookPreview = storybookRoot.$('storybook-preview');20const storybookStory = storybookPreview.$('storybook-story');21const storybookStory = storybookStory.$('storybook-preview');22const htmlElement = require('storybook-root').htmlElement;23const storybookRoot = htmlElement('storybook-root');24const storybookStory = htmlElement('storybook-story');25const storybookPreview = htmlElement('storybook-preview');26const storybookPreview = storybookRoot.$('storybook-preview');27const storybookStory = storybookPreview.$('storybook-story');28const storybookStory = storybookStory.$('storybook-preview');29const htmlElement = require('storybook-root').htmlElement;30const storybookRoot = htmlElement('storybook-root');31const storybookStory = htmlElement('storybook-story');32const storybookPreview = htmlElement('storybook-preview');33const storybookPreview = storybookRoot.$('storybook-preview');34const storybookStory = storybookPreview.$('storybook-story');35const storybookStory = storybookStory.$('storybook-preview');

Full Screen

Using AI Code Generation

copy

Full Screen

1const htmlElement = require('storybook-root/htmlElement');2const { create } = require('storybook-root');3const { div } = htmlElement;4const story = create('test');5story.add('test', () => div('hello world'));6### `create(name, [options])`7- `light` (default)8### `story.add(name, fn)`9### `story.addWithProps(name, fn, [options])`10### `story.addWithState(name, fn, [options])`

Full Screen

Using AI Code Generation

copy

Full Screen

1 'node_modules/(?!react-native|react-native-gesture-handler|@react-native-community/async-storage|@react-native-community/netinfo|@react-native-community/viewpager|react-native-reanimated|react-native-tab-view|react-native-screens|react-native-safe-area-context|react-native-vector-icons|react-native-paper)'2jest.mock('react-native-gesture-handler', () => {3 return {4 };5});6jest.mock('react-native-gesture-handler', () => {7 return {8 };9});10moduleNameMapper: {11 },12"jest": {13 "node_modules/(?!react-native|react-native-gesture-handler|@react-native-community/async-storage|@react-native-community/netinfo|@react-native-community/viewpager|react-native-reanimated|react-native-tab-view|react-native-screens|react-native-safe-area-context|react-native-vector-icons|react-native-paper)"14 "moduleNameMapper": {15 }16 },17module.exports = {18 {

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful