@pfern/elements 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1394 @@
1
+ /** expressive/elements.js
2
+ *
3
+ * Minimalist declarative UI framework based on pure functional composition.
4
+ *
5
+ * Purpose:
6
+ * - All UI defined as pure functions that return declarative arrays.
7
+ * - Directly composable into a symbolic tree compatible with Lisp-like dialects.
8
+ * - No internal mutable state required: DOM itself is the substrate for state.
9
+ * - No JSX, no keys, no reconciler heuristics — just pure structure + replacement.
10
+ *
11
+ */
12
+ export const DEBUG: boolean;
13
+ export function render(vtree: any, container?: any): void;
14
+ export function component(fn: (...args: any[]) => any): (...args: any[]) => any;
15
+ /**
16
+ * @typedef {Record<string, any>} Props
17
+ * @typedef {any[] | string | number | boolean | null | undefined | Node} Child
18
+ * @typedef {any[]} VNode
19
+ *
20
+ * A map of supported HTML and SVG element helpers.
21
+ *
22
+ * Each helper is a function that accepts optional props as first argument
23
+ * and children as subsequent arguments.
24
+ *
25
+ * Example:
26
+ *
27
+ * ```js
28
+ * div({ id: 'foo' }, 'Hello World')
29
+ * ```
30
+ *
31
+ * Produces:
32
+ *
33
+ * ```js
34
+ * ['div', { id: 'foo' }, 'Hello World']
35
+ * ```
36
+ *
37
+ * The following helpers are included:
38
+ * `div`, `span`, `button`, `svg`, `circle`, etc.
39
+ *
40
+ * @callback ElementHelper
41
+ * @param {Props | Child} [propsOrChild]
42
+ * @param {...Child} children
43
+ * @returns {VNode}
44
+ *
45
+ * @type {Record<string, ElementHelper>}
46
+ */
47
+ export const elements: Record<string, ElementHelper>;
48
+ /**
49
+ * <html>
50
+ * Represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.
51
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/html
52
+ *
53
+ * @type {ElementHelper}
54
+ */
55
+ export const html: ElementHelper;
56
+ /**
57
+ * <base>
58
+ * Specifies the base URL to use for all relative URLs in a document. There can be only one such element in a document.
59
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/base
60
+ *
61
+ * @type {ElementHelper}
62
+ */
63
+ export const base: ElementHelper;
64
+ /**
65
+ * <head>
66
+ * Contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets.
67
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/head
68
+ *
69
+ * @type {ElementHelper}
70
+ */
71
+ export const head: ElementHelper;
72
+ /**
73
+ * <link>
74
+ * Specifies relationships between the current document and an external resource. This element is most commonly used to link to CSS but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
75
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link
76
+ *
77
+ * @type {ElementHelper}
78
+ */
79
+ export const link: ElementHelper;
80
+ /**
81
+ * <meta>
82
+ * Represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> and <title>.
83
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta
84
+ *
85
+ * @type {ElementHelper}
86
+ */
87
+ export const meta: ElementHelper;
88
+ /**
89
+ * <style>
90
+ * Contains style information for a document or part of a document. It contains CSS, which is applied to the contents of the document containing this element.
91
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/style
92
+ *
93
+ * @type {ElementHelper}
94
+ */
95
+ export const style: ElementHelper;
96
+ /**
97
+ * <title>
98
+ * Defines the document's title that is shown in a browser's title bar or a page's tab. It only contains text; HTML tags within the element, if any, are also treated as plain text.
99
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/title
100
+ *
101
+ * @type {ElementHelper}
102
+ */
103
+ export const title: ElementHelper;
104
+ /**
105
+ * <body>
106
+ * Represents the content of an HTML document. There can be only one such element in a document.
107
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/body
108
+ *
109
+ * @type {ElementHelper}
110
+ */
111
+ export const body: ElementHelper;
112
+ /**
113
+ * <address>
114
+ * Indicates that the enclosed HTML provides contact information for a person or people, or for an organization.
115
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/address
116
+ *
117
+ * @type {ElementHelper}
118
+ */
119
+ export const address: ElementHelper;
120
+ /**
121
+ * <article>
122
+ * Represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include a forum post, a magazine or newspaper article, a blog entry, a product card, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
123
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/article
124
+ *
125
+ * @type {ElementHelper}
126
+ */
127
+ export const article: ElementHelper;
128
+ /**
129
+ * <aside>
130
+ * Represents a portion of a document whose content is only indirectly related to the document's main content. Asides are frequently presented as sidebars or call-out boxes.
131
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/aside
132
+ *
133
+ * @type {ElementHelper}
134
+ */
135
+ export const aside: ElementHelper;
136
+ /**
137
+ * <footer>
138
+ * Represents a footer for its nearest ancestor sectioning content or sectioning root element. A <footer> typically contains information about the author of the section, copyright data, or links to related documents.
139
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/footer
140
+ *
141
+ * @type {ElementHelper}
142
+ */
143
+ export const footer: ElementHelper;
144
+ /**
145
+ * <header>
146
+ * Represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.
147
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/header
148
+ *
149
+ * @type {ElementHelper}
150
+ */
151
+ export const header: ElementHelper;
152
+ /**
153
+ * <h1>
154
+ * There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
155
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h1
156
+ *
157
+ * @type {ElementHelper}
158
+ */
159
+ export const h1: ElementHelper;
160
+ /**
161
+ * <h2>
162
+ * There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
163
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h2
164
+ *
165
+ * @type {ElementHelper}
166
+ */
167
+ export const h2: ElementHelper;
168
+ /**
169
+ * <h3>
170
+ * There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
171
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h3
172
+ *
173
+ * @type {ElementHelper}
174
+ */
175
+ export const h3: ElementHelper;
176
+ /**
177
+ * <h4>
178
+ * There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
179
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h4
180
+ *
181
+ * @type {ElementHelper}
182
+ */
183
+ export const h4: ElementHelper;
184
+ /**
185
+ * <h5>
186
+ * There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
187
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h5
188
+ *
189
+ * @type {ElementHelper}
190
+ */
191
+ export const h5: ElementHelper;
192
+ /**
193
+ * <h6>
194
+ * There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
195
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h6
196
+ *
197
+ * @type {ElementHelper}
198
+ */
199
+ export const h6: ElementHelper;
200
+ /**
201
+ * <hgroup>
202
+ * Represents a heading grouped with any secondary content, such as subheadings, an alternative title, or a tagline.
203
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/hgroup
204
+ *
205
+ * @type {ElementHelper}
206
+ */
207
+ export const hgroup: ElementHelper;
208
+ /**
209
+ * <main>
210
+ * Represents the dominant content of the body of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.
211
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/main
212
+ *
213
+ * @type {ElementHelper}
214
+ */
215
+ export const main: ElementHelper;
216
+ /**
217
+ * <nav>
218
+ * Represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.
219
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/nav
220
+ *
221
+ * @type {ElementHelper}
222
+ */
223
+ export const nav: ElementHelper;
224
+ /**
225
+ * <section>
226
+ * Represents a generic standalone section of a document, which doesn't have a more specific semantic element to represent it. Sections should always have a heading, with very few exceptions.
227
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/section
228
+ *
229
+ * @type {ElementHelper}
230
+ */
231
+ export const section: ElementHelper;
232
+ /**
233
+ * <search>
234
+ * Represents a part that contains a set of form controls or other content related to performing a search or filtering operation.
235
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/search
236
+ *
237
+ * @type {ElementHelper}
238
+ */
239
+ export const search: ElementHelper;
240
+ /**
241
+ * <blockquote>
242
+ * Indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation. A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the <cite> element.
243
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/blockquote
244
+ *
245
+ * @type {ElementHelper}
246
+ */
247
+ export const blockquote: ElementHelper;
248
+ /**
249
+ * <dd>
250
+ * Provides the description, definition, or value for the preceding term (<dt>) in a description list (<dl>).
251
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dd
252
+ *
253
+ * @type {ElementHelper}
254
+ */
255
+ export const dd: ElementHelper;
256
+ /**
257
+ * <div>
258
+ * The generic container for flow content. It has no effect on the content or layout until styled in some way using CSS (e.g., styling is directly applied to it, or some kind of layout model like flexbox is applied to its parent element).
259
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/div
260
+ *
261
+ * @type {ElementHelper}
262
+ */
263
+ export const div: ElementHelper;
264
+ /**
265
+ * <dl>
266
+ * Represents a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).
267
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dl
268
+ *
269
+ * @type {ElementHelper}
270
+ */
271
+ export const dl: ElementHelper;
272
+ /**
273
+ * <dt>
274
+ * Specifies a term in a description or definition list, and as such must be used inside a <dl> element. It is usually followed by a <dd> element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next <dd> element.
275
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dt
276
+ *
277
+ * @type {ElementHelper}
278
+ */
279
+ export const dt: ElementHelper;
280
+ /**
281
+ * <figcaption>
282
+ * Represents a caption or legend describing the rest of the contents of its parent <figure> element.
283
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figcaption
284
+ *
285
+ * @type {ElementHelper}
286
+ */
287
+ export const figcaption: ElementHelper;
288
+ /**
289
+ * <figure>
290
+ * Represents self-contained content, potentially with an optional caption, which is specified using the <figcaption> element. The figure, its caption, and its contents are referenced as a single unit.
291
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figure
292
+ *
293
+ * @type {ElementHelper}
294
+ */
295
+ export const figure: ElementHelper;
296
+ /**
297
+ * <hr>
298
+ * Represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.
299
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/hr
300
+ *
301
+ * @type {ElementHelper}
302
+ */
303
+ export const hr: ElementHelper;
304
+ /**
305
+ * <li>
306
+ * Represents an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.
307
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/li
308
+ *
309
+ * @type {ElementHelper}
310
+ */
311
+ export const li: ElementHelper;
312
+ /**
313
+ * <menu>
314
+ * A semantic alternative to <ul>, but treated by browsers (and exposed through the accessibility tree) as no different than <ul>. It represents an unordered list of items (which are represented by <li> elements).
315
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/menu
316
+ *
317
+ * @type {ElementHelper}
318
+ */
319
+ export const menu: ElementHelper;
320
+ /**
321
+ * <ol>
322
+ * Represents an ordered list of items — typically rendered as a numbered list.
323
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ol
324
+ *
325
+ * @type {ElementHelper}
326
+ */
327
+ export const ol: ElementHelper;
328
+ /**
329
+ * <p>
330
+ * Represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.
331
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/p
332
+ *
333
+ * @type {ElementHelper}
334
+ */
335
+ export const p: ElementHelper;
336
+ /** ')
337
+ * <pre>
338
+ * Represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or monospaced, font. Whitespace inside this element is displayed as written.
339
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/pre
340
+ *
341
+ * @type {ElementHelper}
342
+ */
343
+ export const pre: ElementHelper;
344
+ /**
345
+ * <ul>
346
+ * Represents an unordered list of items, typically rendered as a bulleted list.
347
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ul
348
+ *
349
+ * @type {ElementHelper}
350
+ */
351
+ export const ul: ElementHelper;
352
+ /**
353
+ * <a>
354
+ * Together with its href attribute, creates a hyperlink to web pages, files, email addresses, locations within the current page, or anything else a URL can address.
355
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a
356
+ *
357
+ * @type {ElementHelper}
358
+ */
359
+ export const a: ElementHelper;
360
+ /**
361
+ * <abbr>
362
+ * Represents an abbreviation or acronym.
363
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/abbr
364
+ *
365
+ * @type {ElementHelper}
366
+ */
367
+ export const abbr: ElementHelper;
368
+ /**
369
+ * <b>
370
+ * Used to draw the reader's attention to the element's contents, which are not otherwise granted special importance. This was formerly known as the Boldface element, and most browsers still draw the text in boldface. However, you should not use <b> for styling text or granting importance. If you wish to create boldface text, you should use the CSS font-weight property. If you wish to indicate an element is of special importance, you should use the <strong> element.
371
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/b
372
+ *
373
+ * @type {ElementHelper}
374
+ */
375
+ export const b: ElementHelper;
376
+ /**
377
+ * <bdi>
378
+ * Tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text. It's particularly useful when a website dynamically inserts some text and doesn't know the directionality of the text being inserted.
379
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/bdi
380
+ *
381
+ * @type {ElementHelper}
382
+ */
383
+ export const bdi: ElementHelper;
384
+ /**
385
+ * <bdo>
386
+ * Overrides the current directionality of text, so that the text within is rendered in a different direction.
387
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/bdo
388
+ *
389
+ * @type {ElementHelper}
390
+ */
391
+ export const bdo: ElementHelper;
392
+ /**
393
+ * <br>
394
+ * Produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
395
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/br
396
+ *
397
+ * @type {ElementHelper}
398
+ */
399
+ export const br: ElementHelper;
400
+ /**
401
+ * <cite>
402
+ * Used to mark up the title of a creative work. The reference may be in an abbreviated form according to context-appropriate conventions related to citation metadata.
403
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/cite
404
+ *
405
+ * @type {ElementHelper}
406
+ */
407
+ export const cite: ElementHelper;
408
+ /**
409
+ * <code>
410
+ * Displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code. By default, the content text is displayed using the user agent's default monospace font.
411
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/code
412
+ *
413
+ * @type {ElementHelper}
414
+ */
415
+ export const code: ElementHelper;
416
+ /**
417
+ * <data>
418
+ * Links a given piece of content with a machine-readable translation. If the content is time- or date-related, the <time> element must be used.
419
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/data
420
+ *
421
+ * @type {ElementHelper}
422
+ */
423
+ export const data: ElementHelper;
424
+ /**
425
+ * <dfn>
426
+ * Used to indicate the term being defined within the context of a definition phrase or sentence. The ancestor <p> element, the <dt>/<dd> pairing, or the nearest section ancestor of the <dfn> element, is considered to be the definition of the term.
427
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dfn
428
+ *
429
+ * @type {ElementHelper}
430
+ */
431
+ export const dfn: ElementHelper;
432
+ /**
433
+ * <em>
434
+ * Marks text that has stress emphasis. The <em> element can be nested, with each nesting level indicating a greater degree of emphasis.
435
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/em
436
+ *
437
+ * @type {ElementHelper}
438
+ */
439
+ export const em: ElementHelper;
440
+ /**
441
+ * <i>
442
+ * Represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, and taxonomical designations, among others. Historically, these have been presented using italicized type, which is the original source of the <i> naming of this element.
443
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/i
444
+ *
445
+ * @type {ElementHelper}
446
+ */
447
+ export const i: ElementHelper;
448
+ /**
449
+ * <kbd>
450
+ * Represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device. By convention, the user agent defaults to rendering the contents of a <kbd> element using its default monospace font, although this is not mandated by the HTML standard.
451
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/kbd
452
+ *
453
+ * @type {ElementHelper}
454
+ */
455
+ export const kbd: ElementHelper;
456
+ /**
457
+ * <mark>
458
+ * Represents text which is marked or highlighted for reference or notation purposes due to the marked passage's relevance in the enclosing context.
459
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/mark
460
+ *
461
+ * @type {ElementHelper}
462
+ */
463
+ export const mark: ElementHelper;
464
+ /**
465
+ * <q>
466
+ * Indicates that the enclosed text is a short inline quotation. Most modern browsers implement this by surrounding the text in quotation marks. This element is intended for short quotations that don't require paragraph breaks; for long quotations use the <blockquote> element.
467
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/q>
468
+ *
469
+ * @type {ElementHelper}
470
+ */
471
+ export const q: ElementHelper;
472
+ /**
473
+ * <rp>
474
+ * Used to provide fall-back parentheses for browsers that do not support the display of ruby annotations using the <ruby> element. One <rp> element should enclose each of the opening and closing parentheses that wrap the <rt> element that contains the annotation's text.
475
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rp
476
+ *
477
+ * @type {ElementHelper}
478
+ */
479
+ export const rp: ElementHelper;
480
+ /**
481
+ * <rt>
482
+ * Specifies the ruby text component of a ruby annotation, which is used to provide pronunciation, translation, or transliteration information for East Asian typography. The <rt> element must always be contained within a <ruby> element.
483
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rt
484
+ *
485
+ * @type {ElementHelper}
486
+ */
487
+ export const rt: ElementHelper;
488
+ /**
489
+ * <ruby>
490
+ * Represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters. It can also be used for annotating other kinds of text, but this usage is less common.
491
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ruby
492
+ *
493
+ * @type {ElementHelper}
494
+ */
495
+ export const ruby: ElementHelper;
496
+ /**
497
+ * <s>
498
+ * Renders text with a strikethrough, or a line through it. Use the <s> element to represent things that are no longer relevant or no longer accurate. However, <s> is not appropriate when indicating document edits; for that, use the <del> and <ins> elements, as appropriate.
499
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/s
500
+ *
501
+ * @type {ElementHelper}
502
+ */
503
+ export const s: ElementHelper;
504
+ /**
505
+ * <samp>
506
+ * Used to enclose inline text which represents sample (or quoted) output from a computer program. Its contents are typically rendered using the browser's default monospaced font (such as Courier or Lucida Console).
507
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/samp
508
+ *
509
+ * @type {ElementHelper}
510
+ */
511
+ export const samp: ElementHelper;
512
+ /**
513
+ * <small>
514
+ * Represents side-comments and small print, like copyright and legal text, independent of its styled presentation. By default, it renders text within it one font size smaller, such as from small to x-small.
515
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/small
516
+ *
517
+ * @type {ElementHelper}
518
+ */
519
+ export const small: ElementHelper;
520
+ /**
521
+ * <span>
522
+ * A generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. It should be used only when no other semantic element is appropriate. <span> is very much like a div element, but div is a block-level element whereas a <span> is an inline-level element.
523
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/span
524
+ *
525
+ * @type {ElementHelper}
526
+ */
527
+ export const span: ElementHelper;
528
+ /**
529
+ * <strong>
530
+ * Indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.
531
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/strong
532
+ *
533
+ * @type {ElementHelper}
534
+ */
535
+ export const strong: ElementHelper;
536
+ /**
537
+ * <sub>
538
+ * Specifies inline text which should be displayed as subscript for solely typographical reasons. Subscripts are typically rendered with a lowered baseline using smaller text.
539
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/sub
540
+ *
541
+ * @type {ElementHelper}
542
+ */
543
+ export const sub: ElementHelper;
544
+ /**
545
+ * <sup>
546
+ * Specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text.
547
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/sup
548
+ *
549
+ * @type {ElementHelper}
550
+ */
551
+ export const sup: ElementHelper;
552
+ /**
553
+ * <time>
554
+ * Represents a specific period in time. It may include the datetime attribute to translate dates into machine-readable format, allowing for better search engine results or custom features such as reminders.
555
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/time
556
+ *
557
+ * @type {ElementHelper}
558
+ */
559
+ export const time: ElementHelper;
560
+ /**
561
+ * <u>
562
+ * Represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation. This is rendered by default as a single solid underline but may be altered using CSS.
563
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/u
564
+ *
565
+ * @type {ElementHelper}
566
+ */
567
+ export const u: ElementHelper;
568
+ /**
569
+ * <var>
570
+ * Represents the name of a variable in a mathematical expression or a programming context. It's typically presented using an italicized version of the current typeface, although that behavior is browser-dependent.
571
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/var
572
+ *
573
+ * @type {ElementHelper}
574
+ */
575
+ export const htmlvar: ElementHelper;
576
+ /**
577
+ * <wbr>
578
+ * Represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.
579
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/wbr
580
+ *
581
+ * @type {ElementHelper}
582
+ */
583
+ export const wbr: ElementHelper;
584
+ /**
585
+ * <area>
586
+ * Defines an area inside an image map that has predefined clickable areas. An image map allows geometric areas on an image to be associated with hyperlink.
587
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/area
588
+ *
589
+ * @type {ElementHelper}
590
+ */
591
+ export const area: ElementHelper;
592
+ /**
593
+ * <audio>
594
+ * Used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the source element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.
595
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/audio
596
+ *
597
+ * @type {ElementHelper}
598
+ */
599
+ export const audio: ElementHelper;
600
+ /**
601
+ * <img>
602
+ * Embeds an image into the document.
603
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img
604
+ *
605
+ * @type {ElementHelper}
606
+ */
607
+ export const img: ElementHelper;
608
+ /**
609
+ * <map>
610
+ * Used with <area> elements to define an image map (a clickable link area).
611
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/map
612
+ *
613
+ * @type {ElementHelper}
614
+ */
615
+ export const map: ElementHelper;
616
+ /**
617
+ * <track>
618
+ * Used as a child of the media elements, audio and video. It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files)—Web Video Text Tracks.
619
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/track
620
+ *
621
+ * @type {ElementHelper}
622
+ */
623
+ export const track: ElementHelper;
624
+ /**
625
+ * <video>
626
+ * Embeds a media player which supports video playback into the document. You can also use <video> for audio content, but the audio element may provide a more appropriate user experience.
627
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video
628
+ *
629
+ * @type {ElementHelper}
630
+ */
631
+ export const video: ElementHelper;
632
+ /**
633
+ * <embed>
634
+ * Embeds external content at the specified point in the document. This content is provided by an external application or other source of interactive content such as a browser plug-in.
635
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/embed
636
+ *
637
+ * @type {ElementHelper}
638
+ */
639
+ export const embed: ElementHelper;
640
+ /**
641
+ * <iframe>
642
+ * Represents a nested browsing context, embedding another HTML page into the current one.
643
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe
644
+ *
645
+ * @type {ElementHelper}
646
+ */
647
+ export const iframe: ElementHelper;
648
+ /**
649
+ * <object>
650
+ * Represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
651
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/object
652
+ *
653
+ * @type {ElementHelper}
654
+ */
655
+ export const object: ElementHelper;
656
+ /**
657
+ * <picture>
658
+ * Contains zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.
659
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/picture
660
+ *
661
+ * @type {ElementHelper}
662
+ */
663
+ export const picture: ElementHelper;
664
+ /**
665
+ * <source>
666
+ * Specifies multiple media resources for the picture, the audio element, or the video element. It is a void element, meaning that it has no content and does not have a closing tag. It is commonly used to offer the same media content in multiple file formats in order to provide compatibility with a broad range of browsers given their differing support for image file formats and media file formats.
667
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/source
668
+ *
669
+ * @type {ElementHelper}
670
+ */
671
+ export const source: ElementHelper;
672
+ /**
673
+ * <canvas>
674
+ * Container element to use with either the canvas scripting API or the WebGL API to draw graphics and animations.
675
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/canvas
676
+ *
677
+ * @type {ElementHelper}
678
+ */
679
+ export const canvas: ElementHelper;
680
+ /**
681
+ * <noscript>
682
+ * Defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.
683
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/noscript
684
+ *
685
+ * @type {ElementHelper}
686
+ */
687
+ export const noscript: ElementHelper;
688
+ /**
689
+ * <script>
690
+ * Used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The <script> element can also be used with other languages, such as WebGL's GLSL shader programming language and JSON.
691
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script
692
+ *
693
+ * @type {ElementHelper}
694
+ */
695
+ export const script: ElementHelper;
696
+ /**
697
+ * <del>
698
+ * Represents a range of text that has been deleted from a document. This can be used when rendering "track changes" or source code diff information, for example. The <ins> element can be used for the opposite purpose: to indicate text that has been added to the document.
699
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/del
700
+ *
701
+ * @type {ElementHelper}
702
+ */
703
+ export const del: ElementHelper;
704
+ /**
705
+ * <ins>
706
+ * Represents a range of text that has been added to a document. You can use the <del> element to similarly represent a range of text that has been deleted from the document.
707
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ins
708
+ *
709
+ * @type {ElementHelper}
710
+ */
711
+ export const ins: ElementHelper;
712
+ /**
713
+ * <caption>
714
+ * Specifies the caption (or title) of a table.
715
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/caption
716
+ *
717
+ * @type {ElementHelper}
718
+ */
719
+ export const caption: ElementHelper;
720
+ /**
721
+ * <col>
722
+ * Defines one or more columns in a column group represented by its implicit or explicit parent <colgroup> element. The <col> element is only valid as a child of a <colgroup> element that has no span attribute defined.
723
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/col
724
+ *
725
+ * @type {ElementHelper}
726
+ */
727
+ export const col: ElementHelper;
728
+ /**
729
+ * <colgroup>
730
+ * Defines a group of columns within a table.
731
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/colgroup
732
+ *
733
+ * @type {ElementHelper}
734
+ */
735
+ export const colgroup: ElementHelper;
736
+ /**
737
+ * <table>
738
+ * Represents tabular data—that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.
739
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/table
740
+ *
741
+ * @type {ElementHelper}
742
+ */
743
+ export const table: ElementHelper;
744
+ /**
745
+ * <tbody>
746
+ * Encapsulates a set of table rows (<tr> elements), indicating that they comprise the body of a table's (main) data.
747
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tbody
748
+ *
749
+ * @type {ElementHelper}
750
+ */
751
+ export const tbody: ElementHelper;
752
+ /**
753
+ * <td>
754
+ * A child of the <tr> element, it defines a cell of a table that contains data.
755
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/td
756
+ *
757
+ * @type {ElementHelper}
758
+ */
759
+ export const td: ElementHelper;
760
+ /**
761
+ * <tfoot>
762
+ * Encapsulates a set of table rows (<tr> elements), indicating that they comprise the foot of a table with information about the table's columns. This is usually a summary of the columns, e.g., a sum of the given numbers in a column.
763
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tfoot
764
+ *
765
+ * @type {ElementHelper}
766
+ */
767
+ export const tfoot: ElementHelper;
768
+ /**
769
+ * <th>
770
+ * A child of the <tr> element, it defines a cell as the header of a group of table cells. The nature of this group can be explicitly defined by the scope and headers attributes.
771
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/th
772
+ *
773
+ * @type {ElementHelper}
774
+ */
775
+ export const th: ElementHelper;
776
+ /**
777
+ * <thead>
778
+ * Encapsulates a set of table rows (<tr> elements), indicating that they comprise the head of a table with information about the table's columns. This is usually in the form of column headers (<th> elements).
779
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/thead
780
+ *
781
+ * @type {ElementHelper}
782
+ */
783
+ export const thead: ElementHelper;
784
+ /**
785
+ * <tr>
786
+ * Defines a row of cells in a table. The row's cells can then be established using a mix of <td> (data cell) and <th> (header cell) elements.
787
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tr
788
+ *
789
+ * @type {ElementHelper}
790
+ */
791
+ export const tr: ElementHelper;
792
+ /**
793
+ * <button>
794
+ * An interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it performs an action, such as submitting a form or opening a dialog.
795
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button
796
+ *
797
+ * @type {ElementHelper}
798
+ */
799
+ export const button: ElementHelper;
800
+ /**
801
+ * <datalist>
802
+ * Contains a set of <option> elements that represent the permissible or recommended options available to choose from within other controls.
803
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/datalist
804
+ *
805
+ * @type {ElementHelper}
806
+ */
807
+ export const datalist: ElementHelper;
808
+ /**
809
+ * <fieldset>
810
+ * Used to group several controls as well as labels (<label>) within a web form.
811
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/fieldset
812
+ *
813
+ * @type {ElementHelper}
814
+ */
815
+ export const fieldset: ElementHelper;
816
+ /**
817
+ * <form>
818
+ * Represents a document section containing interactive controls for submitting information.
819
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form
820
+ *
821
+ * @type {ElementHelper}
822
+ */
823
+ export const form: ElementHelper;
824
+ /**
825
+ * <input>
826
+ * Used to create interactive controls for web-based forms to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
827
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input
828
+ *
829
+ * @type {ElementHelper}
830
+ */
831
+ export const input: ElementHelper;
832
+ /**
833
+ * <label>
834
+ * Represents a caption for an item in a user interface.
835
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/label
836
+ *
837
+ * @type {ElementHelper}
838
+ */
839
+ export const label: ElementHelper;
840
+ /**
841
+ * <legend>
842
+ * Represents a caption for the content of its parent <fieldset>.
843
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/legend
844
+ *
845
+ * @type {ElementHelper}
846
+ */
847
+ export const legend: ElementHelper;
848
+ /**
849
+ * <meter>
850
+ * Represents either a scalar value within a known range or a fractional value.
851
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meter
852
+ *
853
+ * @type {ElementHelper}
854
+ */
855
+ export const meter: ElementHelper;
856
+ /**
857
+ * <optgroup>
858
+ * Creates a grouping of options within a <select> element.
859
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/optgroup
860
+ *
861
+ * @type {ElementHelper}
862
+ */
863
+ export const optgroup: ElementHelper;
864
+ /**
865
+ * <option>
866
+ * Used to define an item contained in a select, an <optgroup>, or a <datalist> element. As such, <option> can represent menu items in popups and other lists of items in an HTML document.
867
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/option
868
+ *
869
+ * @type {ElementHelper}
870
+ */
871
+ export const option: ElementHelper;
872
+ /**
873
+ * <output>
874
+ * Container element into which a site or app can inject the results of a calculation or the outcome of a user action.
875
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/output
876
+ *
877
+ * @type {ElementHelper}
878
+ */
879
+ export const output: ElementHelper;
880
+ /**
881
+ * <progress>
882
+ * Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
883
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/progress
884
+ *
885
+ * @type {ElementHelper}
886
+ */
887
+ export const progress: ElementHelper;
888
+ /**
889
+ * <select>
890
+ * Represents a control that provides a menu of options.
891
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select
892
+ *
893
+ * @type {ElementHelper}
894
+ */
895
+ export const select: ElementHelper;
896
+ /**
897
+ * <textarea>
898
+ * Represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example, a comment on a review or feedback form.
899
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea
900
+ *
901
+ * @type {ElementHelper}
902
+ */
903
+ export const textarea: ElementHelper;
904
+ /**
905
+ * <details>
906
+ * Creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label must be provided using the <summary> element.
907
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details
908
+ *
909
+ * @type {ElementHelper}
910
+ */
911
+ export const details: ElementHelper;
912
+ /**
913
+ * <dialog>
914
+ * Represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
915
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog
916
+ *
917
+ * @type {ElementHelper}
918
+ */
919
+ export const dialog: ElementHelper;
920
+ /**
921
+ * <summary>
922
+ * Specifies a summary, caption, or legend for a details element's disclosure box. Clicking the <summary> element toggles the state of the parent <details> element open and closed.
923
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary
924
+ *
925
+ * @type {ElementHelper}
926
+ */
927
+ export const summary: ElementHelper;
928
+ /**
929
+ * <slot>
930
+ * Part of the Web Components technology suite, this element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.
931
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/slot
932
+ *
933
+ * @type {ElementHelper}
934
+ */
935
+ export const slot: ElementHelper;
936
+ /**
937
+ * <template>
938
+ * A mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.
939
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/template
940
+ *
941
+ * @type {ElementHelper}
942
+ */
943
+ export const template: ElementHelper;
944
+ /**
945
+ * <image>
946
+ * An ancient and poorly supported precursor to the <img> element. It should not be used.
947
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/image
948
+ *
949
+ * @type {ElementHelper}
950
+ */
951
+ export const image: ElementHelper;
952
+ /**
953
+ * <rb>
954
+ * Used to delimit the base text component of a ruby annotation, i.e., the text that is being annotated. One <rb> element should wrap each separate atomic segment of the base text.
955
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rb
956
+ *
957
+ * @type {ElementHelper}
958
+ */
959
+ export const rb: ElementHelper;
960
+ /**
961
+ * <rtc>
962
+ * Embraces semantic annotations of characters presented in a ruby of <rb> elements used inside of <ruby> element. <rb> elements can have both pronunciation (<rt>) and semantic (<rtc>) annotations.
963
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rtc
964
+ *
965
+ * @type {ElementHelper}
966
+ */
967
+ export const rtc: ElementHelper;
968
+ /**
969
+ * The <animate> SVG element provides a way to animate an attribute of an element over time.
970
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animate
971
+ *
972
+ * @type {ElementHelper}
973
+ */
974
+ export const animate: ElementHelper;
975
+ /**
976
+ * The <animateMotion> SVG element provides a way to define how an element moves along a motion path.
977
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animateMotion
978
+ *
979
+ * @type {ElementHelper}
980
+ */
981
+ export const animateMotion: ElementHelper;
982
+ /**
983
+ * The <animateTransform> SVG element animates a transformation attribute on its target element, thereby allowing animations to control translation, scaling, rotation, and/or skewing.
984
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animateTransform
985
+ *
986
+ * @type {ElementHelper}
987
+ */
988
+ export const animateTransform: ElementHelper;
989
+ /**
990
+ * The <mpath> SVG sub-element for the <animateMotion> element provides the ability to reference an external <path> element as the definition of a motion path.
991
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/mpath
992
+ *
993
+ * @type {ElementHelper}
994
+ */
995
+ export const mpath: ElementHelper;
996
+ /**
997
+ * The <set> SVG element provides a method of setting the value of an attribute for a specified duration.
998
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/set
999
+ *
1000
+ * @type {ElementHelper}
1001
+ */
1002
+ export const set: ElementHelper;
1003
+ /**
1004
+ * The <circle> SVG element is an SVG basic shape, used to draw circles based on a center point and a radius.
1005
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/circle
1006
+ *
1007
+ * @type {ElementHelper}
1008
+ */
1009
+ export const circle: ElementHelper;
1010
+ /**
1011
+ * The <ellipse> SVG element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius.
1012
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/ellipse
1013
+ *
1014
+ * @type {ElementHelper}
1015
+ */
1016
+ export const ellipse: ElementHelper;
1017
+ /**
1018
+ * The <line> SVG element is an SVG basic shape used to create a line connecting two points.
1019
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/line
1020
+ *
1021
+ * @type {ElementHelper}
1022
+ */
1023
+ export const line: ElementHelper;
1024
+ /**
1025
+ * The <path> SVG element is the generic element to define a shape. All the basic shapes can be created with a path element.
1026
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/path
1027
+ *
1028
+ * @type {ElementHelper}
1029
+ */
1030
+ export const path: ElementHelper;
1031
+ /**
1032
+ * The <polygon> SVG element defines a closed shape consisting of a set of connected straight line segments. The last point is connected to the first point.
1033
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/polygon
1034
+ *
1035
+ * @type {ElementHelper}
1036
+ */
1037
+ export const polygon: ElementHelper;
1038
+ /**
1039
+ * The <polyline> SVG element is an SVG basic shape that creates straight lines connecting several points. Typically a polyline is used to create open shapes as the last point doesn't have to be connected to the first point. For closed shapes see the <polygon> element.
1040
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/polyline
1041
+ *
1042
+ * @type {ElementHelper}
1043
+ */
1044
+ export const polyline: ElementHelper;
1045
+ /**
1046
+ * The <rect> SVG element is a basic SVG shape that draws rectangles, defined by their position, width, and height. The rectangles may have their corners rounded.
1047
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/rect
1048
+ *
1049
+ * @type {ElementHelper}
1050
+ */
1051
+ export const rect: ElementHelper;
1052
+ /**
1053
+ * The <defs> SVG element is used to store graphical objects that will be used at a later time. Objects created inside a <defs> element are not rendered directly. To display them you have to reference them (with a <use> element for example).
1054
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/defs
1055
+ *
1056
+ * @type {ElementHelper}
1057
+ */
1058
+ export const defs: ElementHelper;
1059
+ /**
1060
+ * The <g> SVG element is a container used to group other SVG elements.
1061
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/g
1062
+ *
1063
+ * @type {ElementHelper}
1064
+ */
1065
+ export const g: ElementHelper;
1066
+ /**
1067
+ * The <marker> SVG element defines a graphic used for drawing arrowheads or polymarkers on a given <path>, <line>, <polyline> or <polygon> element.
1068
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/marker
1069
+ *
1070
+ * @type {ElementHelper}
1071
+ */
1072
+ export const marker: ElementHelper;
1073
+ /**
1074
+ * The <mask> SVG element defines a mask for compositing the current object into the background. A mask is used/referenced using the mask property and CSS mask-image property.
1075
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/mask
1076
+ *
1077
+ * @type {ElementHelper}
1078
+ */
1079
+ export const mask: ElementHelper;
1080
+ /**
1081
+ * The <pattern> SVG element defines a graphics object which can be redrawn at repeated x- and y-coordinate intervals ("tiled") to cover an area.
1082
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/pattern
1083
+ *
1084
+ * @type {ElementHelper}
1085
+ */
1086
+ export const pattern: ElementHelper;
1087
+ /**
1088
+ * The <svg> SVG element is a container that defines a new coordinate system and viewport. It is used as the outermost element of SVG documents, but it can also be used to embed an SVG fragment inside an SVG or HTML document.
1089
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/svg
1090
+ *
1091
+ * @type {ElementHelper}
1092
+ */
1093
+ export const svg: ElementHelper;
1094
+ /**
1095
+ * The <switch> SVG element evaluates any requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then renders the first child where these attributes evaluate to true.
1096
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/switch
1097
+ *
1098
+ * @type {ElementHelper}
1099
+ */
1100
+ export const svgswitch: ElementHelper;
1101
+ /**
1102
+ * The <symbol> SVG element is used to define graphical template objects which can be instantiated by a <use> element.
1103
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/symbol
1104
+ *
1105
+ * @type {ElementHelper}
1106
+ */
1107
+ export const symbol: ElementHelper;
1108
+ /**
1109
+ * The <use> element takes nodes from within an SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, then pasted where the <use> element is, much like cloned <template> elements.
1110
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/use
1111
+ *
1112
+ * @type {ElementHelper}
1113
+ */
1114
+ export const use: ElementHelper;
1115
+ /**
1116
+ * The <desc> SVG element provides an accessible, long-text description of any SVG container element or graphics element.
1117
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/desc
1118
+ *
1119
+ * @type {ElementHelper}
1120
+ */
1121
+ export const desc: ElementHelper;
1122
+ /**
1123
+ * The <metadata> SVG element adds metadata to SVG content. Metadata is structured information about data. The contents of <metadata> should be elements from other XML namespaces such as RDF, FOAF, etc.
1124
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/metadata
1125
+ *
1126
+ * @type {ElementHelper}
1127
+ */
1128
+ export const metadata: ElementHelper;
1129
+ /**
1130
+ * The <filter> SVG element defines a custom filter effect by grouping atomic filter primitives. It is never rendered itself, but must be used by the filter attribute on SVG elements, or the filter CSS property for SVG/HTML elements.
1131
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/filter
1132
+ *
1133
+ * @type {ElementHelper}
1134
+ */
1135
+ export const filter: ElementHelper;
1136
+ /**
1137
+ * The <feBlend> SVG filter primitive composes two objects together ruled by a certain blending mode. This is similar to what is known from image editing software when blending two layers. The mode is defined by the mode attribute.
1138
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feBlend
1139
+ *
1140
+ * @type {ElementHelper}
1141
+ */
1142
+ export const feBlend: ElementHelper;
1143
+ /**
1144
+ * The <feColorMatrix> SVG filter element changes colors based on a transformation matrix. Every pixel's color value [R,G,B,A] is matrix multiplied by a 5 by 5 color matrix to create new color [R',G',B',A'].
1145
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feColorMatrix
1146
+ *
1147
+ * @type {ElementHelper}
1148
+ */
1149
+ export const feColorMatrix: ElementHelper;
1150
+ /**
1151
+ * The <feComponentTransfer> SVG filter primitive performs color-component-wise remapping of data for each pixel. It allows operations like brightness adjustment, contrast adjustment, color balance or thresholding.
1152
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feComponentTransfer
1153
+ *
1154
+ * @type {ElementHelper}
1155
+ */
1156
+ export const feComponentTransfer: ElementHelper;
1157
+ /**
1158
+ * The <feComposite> SVG filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: over, in, atop, out, xor, lighter, or arithmetic.
1159
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feComposite
1160
+ *
1161
+ * @type {ElementHelper}
1162
+ */
1163
+ export const feComposite: ElementHelper;
1164
+ /**
1165
+ * The <feConvolveMatrix> SVG filter primitive applies a matrix convolution filter effect. A convolution combines pixels in the input image with neighboring pixels to produce a resulting image. A wide variety of imaging operations can be achieved through convolutions, including blurring, edge detection, sharpening, embossing and beveling.
1166
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feConvolveMatrix
1167
+ *
1168
+ * @type {ElementHelper}
1169
+ */
1170
+ export const feConvolveMatrix: ElementHelper;
1171
+ /**
1172
+ * The <feDiffuseLighting> SVG filter primitive lights an image using the alpha channel as a bump map. The resulting image, which is an RGBA opaque image, depends on the light color, light position and surface geometry of the input bump map.
1173
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDiffuseLighting
1174
+ *
1175
+ * @type {ElementHelper}
1176
+ */
1177
+ export const feDiffuseLighting: ElementHelper;
1178
+ /**
1179
+ * The <feDisplacementMap> SVG filter primitive uses the pixel values from the image from in2 to spatially displace the image from in.
1180
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDisplacementMap
1181
+ *
1182
+ * @type {ElementHelper}
1183
+ */
1184
+ export const feDisplacementMap: ElementHelper;
1185
+ /**
1186
+ * The <feDistantLight> SVG filter primitive defines a distant light source that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>.
1187
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDistantLight
1188
+ *
1189
+ * @type {ElementHelper}
1190
+ */
1191
+ export const feDistantLight: ElementHelper;
1192
+ /**
1193
+ * The <feDropShadow> SVG filter primitive creates a drop shadow of the input image. It can only be used inside a <filter> element.
1194
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDropShadow
1195
+ *
1196
+ * @type {ElementHelper}
1197
+ */
1198
+ export const feDropShadow: ElementHelper;
1199
+ /**
1200
+ * The <feFlood> SVG filter primitive fills the filter subregion with the color and opacity defined by flood-color and flood-opacity.
1201
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFlood
1202
+ *
1203
+ * @type {ElementHelper}
1204
+ */
1205
+ export const feFlood: ElementHelper;
1206
+ /**
1207
+ * The <feFuncA> SVG filter primitive defines the transfer function for the alpha component of the input graphic of its parent <feComponentTransfer> element.
1208
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncA
1209
+ *
1210
+ * @type {ElementHelper}
1211
+ */
1212
+ export const feFuncA: ElementHelper;
1213
+ /**
1214
+ * The <feFuncB> SVG filter primitive defines the transfer function for the blue component of the input graphic of its parent <feComponentTransfer> element.
1215
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncB
1216
+ *
1217
+ * @type {ElementHelper}
1218
+ */
1219
+ export const feFuncB: ElementHelper;
1220
+ /**
1221
+ * The <feFuncG> SVG filter primitive defines the transfer function for the green component of the input graphic of its parent <feComponentTransfer> element.
1222
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncG
1223
+ *
1224
+ * @type {ElementHelper}
1225
+ */
1226
+ export const feFuncG: ElementHelper;
1227
+ /**
1228
+ * The <feFuncR> SVG filter primitive defines the transfer function for the red component of the input graphic of its parent <feComponentTransfer> element.
1229
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncR
1230
+ *
1231
+ * @type {ElementHelper}
1232
+ */
1233
+ export const feFuncR: ElementHelper;
1234
+ /**
1235
+ * The <feGaussianBlur> SVG filter primitive blurs the input image by the amount specified in stdDeviation, which defines the bell-curve.
1236
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feGaussianBlur
1237
+ *
1238
+ * @type {ElementHelper}
1239
+ */
1240
+ export const feGaussianBlur: ElementHelper;
1241
+ /**
1242
+ * The <feImage> SVG filter primitive fetches image data from an external source and provides the pixel data as output (meaning if the external source is an SVG image, it is rasterized.)
1243
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feImage
1244
+ *
1245
+ * @type {ElementHelper}
1246
+ */
1247
+ export const feImage: ElementHelper;
1248
+ /**
1249
+ * The <feMerge> SVG element allows filter effects to be applied concurrently instead of sequentially. This is achieved by other filters storing their output via the result attribute and then accessing it in a <feMergeNode> child.
1250
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMerge
1251
+ *
1252
+ * @type {ElementHelper}
1253
+ */
1254
+ export const feMerge: ElementHelper;
1255
+ /**
1256
+ * The <feMergeNode> SVG takes the result of another filter to be processed by its parent <feMerge>.
1257
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMergeNode
1258
+ *
1259
+ * @type {ElementHelper}
1260
+ */
1261
+ export const feMergeNode: ElementHelper;
1262
+ /**
1263
+ * The <feMorphology> SVG filter primitive is used to erode or dilate the input image. Its usefulness lies especially in fattening or thinning effects.
1264
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMorphology
1265
+ *
1266
+ * @type {ElementHelper}
1267
+ */
1268
+ export const feMorphology: ElementHelper;
1269
+ /**
1270
+ * The <feOffset> SVG filter primitive enables offsetting an input image relative to its current position. The input image as a whole is offset by the values specified in the dx and dy attributes.
1271
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feOffset
1272
+ *
1273
+ * @type {ElementHelper}
1274
+ */
1275
+ export const feOffset: ElementHelper;
1276
+ /**
1277
+ * The <fePointLight> SVG filter primitive defines a light source which allows to create a point light effect. It that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>.
1278
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/fePointLight
1279
+ *
1280
+ * @type {ElementHelper}
1281
+ */
1282
+ export const fePointLight: ElementHelper;
1283
+ /**
1284
+ * The <feSpecularLighting> SVG filter primitive lights a source graphic using the alpha channel as a bump map. The resulting image is an RGBA image based on the light color. The lighting calculation follows the standard specular component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. The result of the lighting calculation is added. The filter primitive assumes that the viewer is at infinity in the z direction.
1285
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feSpecularLighting
1286
+ *
1287
+ * @type {ElementHelper}
1288
+ */
1289
+ export const feSpecularLighting: ElementHelper;
1290
+ /**
1291
+ * The <feSpotLight> SVG filter primitive defines a light source that can be used to create a spotlight effect. It is used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>.
1292
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feSpotLight
1293
+ *
1294
+ * @type {ElementHelper}
1295
+ */
1296
+ export const feSpotLight: ElementHelper;
1297
+ /**
1298
+ * The <feTile> SVG filter primitive allows to fill a target rectangle with a repeated, tiled pattern of an input image. The effect is similar to the one of a <pattern>.
1299
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feTile
1300
+ *
1301
+ * @type {ElementHelper}
1302
+ */
1303
+ export const feTile: ElementHelper;
1304
+ /**
1305
+ * The <feTurbulence> SVG filter primitive creates an image using the Perlin turbulence function. It allows the synthesis of artificial textures like clouds or marble. The resulting image will fill the entire filter primitive subregion.
1306
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feTurbulence
1307
+ *
1308
+ * @type {ElementHelper}
1309
+ */
1310
+ export const feTurbulence: ElementHelper;
1311
+ /**
1312
+ * The <linearGradient> SVG element lets authors define linear gradients to apply to other SVG elements.
1313
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/linearGradient
1314
+ *
1315
+ * @type {ElementHelper}
1316
+ */
1317
+ export const linearGradient: ElementHelper;
1318
+ /**
1319
+ * The <radialGradient> SVG element lets authors define radial gradients that can be applied to fill or stroke of graphical elements.
1320
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/radialGradient
1321
+ *
1322
+ * @type {ElementHelper}
1323
+ */
1324
+ export const radialGradient: ElementHelper;
1325
+ /**
1326
+ * The <stop> SVG element defines a color and its position to use on a gradient. This element is always a child of a <linearGradient> or <radialGradient> element.
1327
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/stop
1328
+ *
1329
+ * @type {ElementHelper}
1330
+ */
1331
+ export const stop: ElementHelper;
1332
+ /**
1333
+ * The <foreignObject> SVG element includes elements from a different XML namespace. In the context of a browser, it is most likely (X)HTML.
1334
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/foreignObject
1335
+ *
1336
+ * @type {ElementHelper}
1337
+ */
1338
+ export const foreignObject: ElementHelper;
1339
+ /**
1340
+ * The <text> SVG element draws a graphics element consisting of text. It's possible to apply a gradient, pattern, clipping path, mask, or filter to <text>, like any other SVG graphics element.
1341
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/text
1342
+ *
1343
+ * @type {ElementHelper}
1344
+ */
1345
+ export const text: ElementHelper;
1346
+ /**
1347
+ * The <textPath> SVG element is used to render text along the shape of a <path> element. The text must be enclosed in the <textPath> element and its href attribute is used to reference the desired <path>.
1348
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/textPath
1349
+ *
1350
+ * @type {ElementHelper}
1351
+ */
1352
+ export const textPath: ElementHelper;
1353
+ /**
1354
+ * The <tspan> SVG element defines a subtext within a <text> element or another <tspan> element. It allows for adjustment of the style and/or position of that subtext as needed.
1355
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/tspan
1356
+ *
1357
+ * @type {ElementHelper}
1358
+ */
1359
+ export const tspan: ElementHelper;
1360
+ /**
1361
+ * The <view> SVG element defines a particular view of an SVG document. A specific view can be displayed by referencing the <view> element's id as the target fragment of a URL.
1362
+ * https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/view
1363
+ *
1364
+ * @type {ElementHelper}
1365
+ */
1366
+ export const view: ElementHelper;
1367
+ export type Props = Record<string, any>;
1368
+ export type Child = VNode | string | number | boolean | null | undefined;
1369
+ /**
1370
+ * A map of supported HTML and SVG element helpers.
1371
+ *
1372
+ * Each helper is a function that accepts optional props as first argument
1373
+ * and children as subsequent arguments.
1374
+ *
1375
+ * Example:
1376
+ *
1377
+ * ```js
1378
+ * div({ id: 'foo' }, 'Hello World')
1379
+ * ```
1380
+ *
1381
+ * Produces:
1382
+ *
1383
+ * ```js
1384
+ * ['div', { id: 'foo' }, 'Hello World']
1385
+ * ```
1386
+ *
1387
+ * The following helpers are included:
1388
+ * `div`, `span`, `button`, `svg`, `circle`, etc.
1389
+ */
1390
+ export type VNode = [tag: string, props: Props, ...children: Child[]];
1391
+ export type ElementHelper = {
1392
+ (props: Props, ...children: Child[]): VNode;
1393
+ (...children: Child[]): VNode;
1394
+ };