-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect.ts
60 lines (58 loc) · 2.43 KB
/
select.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
/**
* @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";
/**
* SelectElementProps are the props for the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select>
*/
export interface SelectElementProps extends GlobalAttributes {
/**
* `autocomplete` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select#autocomplete>
*/
autocomplete?: string | undefined;
/**
* `disabled` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select#disabled>
*/
disabled?: string | undefined;
/**
* `form` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select#form>
*/
form?: string | undefined;
/**
* `multiple` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select#multiple>
*/
multiple?: string | undefined;
/**
* `name` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select#name>
*/
name?: string | undefined;
/**
* `required` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select#required>
*/
required?: string | undefined;
/**
* `size` is an attribute of the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select#size>
*/
size?: string | undefined;
}
/**
* select renders the [`select`](https://developer.mozilla.org/docs/Web/HTML/Element/select) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/select>
*/
export function select(
props?: SelectElementProps,
...children: string[]
): string {
return renderElement("select", props as AnyProps, false, children);
}