-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.ts
115 lines (113 loc) · 4.92 KB
/
link.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
* @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";
/**
* LinkElementProps are the props for the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link>
*/
export interface LinkElementProps extends GlobalAttributes {
/**
* `as` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#as>
*/
as?: string | undefined;
/**
* `blocking` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#blocking>
*/
blocking?: string | undefined;
/**
* `charset` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#charset>
* @deprecated
*/
charset?: string | undefined;
/**
* `crossorigin` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#crossorigin>
*/
crossorigin?: string | undefined;
/**
* `disabled` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#disabled>
*/
disabled?: string | undefined;
/**
* `fetchpriority` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#fetchpriority>
*/
fetchpriority?: string | undefined;
/**
* `href` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#href>
*/
href?: string | undefined;
/**
* `hreflang` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#hreflang>
*/
hreflang?: string | undefined;
/**
* `imagesizes` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#imagesizes>
*/
imagesizes?: string | undefined;
/**
* `imagesrcset` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#imagesrcset>
*/
imagesrcset?: string | undefined;
/**
* `integrity` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#integrity>
*/
integrity?: string | undefined;
/**
* `media` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#media>
*/
media?: string | undefined;
/**
* `referrerpolicy` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#referrerpolicy>
*/
referrerpolicy?: string | undefined;
/**
* `rel` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#rel>
*/
rel?: string | undefined;
/**
* `rev` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#rev>
* @deprecated
*/
rev?: string | undefined;
/**
* `sizes` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#sizes>
*/
sizes?: string | undefined;
/**
* `target` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#target>
* @deprecated
*/
target?: string | undefined;
/**
* `type` is an attribute of the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link#type>
*/
type?: string | undefined;
}
/**
* link renders the [`link`](https://developer.mozilla.org/docs/Web/HTML/Element/link) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/link>
*/
export function link(props?: LinkElementProps): string {
return renderElement("link", props as AnyProps, true);
}