-
Notifications
You must be signed in to change notification settings - Fork 0
/
html.ts
33 lines (31 loc) · 1.23 KB
/
html.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @fileoverview
*
* This file was generated. Do not modify this file directly.
*/
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts";
import { renderElement } from "./lib/mod.ts";
/**
* HtmlElementProps are the props for the [`html`](https://developer.mozilla.org/docs/Web/HTML/Element/html) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/html>
*/
export interface HtmlElementProps extends GlobalAttributes {
/**
* `version` is an attribute of the [`html`](https://developer.mozilla.org/docs/Web/HTML/Element/html) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/html#version>
* @deprecated
*/
version?: string | undefined;
/**
* `xmlns` is an attribute of the [`html`](https://developer.mozilla.org/docs/Web/HTML/Element/html) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/html#xmlns>
*/
xmlns?: string | undefined;
}
/**
* html renders the [`html`](https://developer.mozilla.org/docs/Web/HTML/Element/html) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/html>
*/
export function html(props?: HtmlElementProps, ...children: string[]): string {
return renderElement("html", props as AnyProps, false, children);
}