-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable.ts
79 lines (77 loc) · 3.02 KB
/
table.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* @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";
/**
* TableElementProps are the props for the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table>
*/
export interface TableElementProps extends GlobalAttributes {
/**
* `align` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#align>
* @deprecated
*/
align?: string | undefined;
/**
* `bgcolor` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#bgcolor>
* @deprecated
*/
bgcolor?: string | undefined;
/**
* `border` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#border>
* @deprecated
*/
border?: string | undefined;
/**
* `cellpadding` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#cellpadding>
* @deprecated
*/
cellpadding?: string | undefined;
/**
* `cellspacing` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#cellspacing>
* @deprecated
*/
cellspacing?: string | undefined;
/**
* `frame` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#frame>
* @deprecated
*/
frame?: string | undefined;
/**
* `rules` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#rules>
* @deprecated
*/
rules?: string | undefined;
/**
* `summary` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#summary>
* @deprecated
*/
summary?: string | undefined;
/**
* `width` is an attribute of the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table#width>
* @deprecated
*/
width?: string | undefined;
}
/**
* table renders the [`table`](https://developer.mozilla.org/docs/Web/HTML/Element/table) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/table>
*/
export function table(
props?: TableElementProps,
...children: string[]
): string {
return renderElement("table", props as AnyProps, false, children);
}