-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudio.ts
70 lines (68 loc) · 2.92 KB
/
audio.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
/**
* @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";
/**
* AudioElementProps are the props for the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio>
*/
export interface AudioElementProps extends GlobalAttributes {
/**
* `autoplay` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#autoplay>
*/
autoplay?: string | undefined;
/**
* `controls` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#controls>
*/
controls?: string | undefined;
/**
* `controlslist` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#controlslist>
*/
controlslist?: string | undefined;
/**
* `crossorigin` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#crossorigin>
*/
crossorigin?: string | undefined;
/**
* `disableremoteplayback` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#disableremoteplayback>
*/
disableremoteplayback?: string | undefined;
/**
* `loop` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#loop>
*/
loop?: string | undefined;
/**
* `muted` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#muted>
*/
muted?: string | undefined;
/**
* `preload` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#preload>
*/
preload?: string | undefined;
/**
* `src` is an attribute of the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio#src>
*/
src?: string | undefined;
}
/**
* audio renders the [`audio`](https://developer.mozilla.org/docs/Web/HTML/Element/audio) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/audio>
*/
export function audio(
props?: AudioElementProps,
...children: string[]
): string {
return renderElement("audio", props as AnyProps, false, children);
}