-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsource.ts
57 lines (55 loc) · 2.35 KB
/
source.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
/**
* @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";
/**
* SourceElementProps are the props for the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source>
*/
export interface SourceElementProps extends GlobalAttributes {
/**
* `height` is an attribute of the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source#height>
*/
height?: string | undefined;
/**
* `media` is an attribute of the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source#media>
*/
media?: string | undefined;
/**
* `sizes` is an attribute of the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source#sizes>
*/
sizes?: string | undefined;
/**
* `src` is an attribute of the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source#src>
*/
src?: string | undefined;
/**
* `srcset` is an attribute of the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source#srcset>
*/
srcset?: string | undefined;
/**
* `type` is an attribute of the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source#type>
*/
type?: string | undefined;
/**
* `width` is an attribute of the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source#width>
*/
width?: string | undefined;
}
/**
* source renders the [`source`](https://developer.mozilla.org/docs/Web/HTML/Element/source) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/source>
*/
export function source(props?: SourceElementProps): string {
return renderElement("source", props as AnyProps, true);
}