-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.ts
30 lines (28 loc) · 1.02 KB
/
dialog.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
/**
* @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";
/**
* DialogElementProps are the props for the [`dialog`](https://developer.mozilla.org/docs/Web/HTML/Element/dialog) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/dialog>
*/
export interface DialogElementProps extends GlobalAttributes {
/**
* `open` is an attribute of the [`dialog`](https://developer.mozilla.org/docs/Web/HTML/Element/dialog) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/dialog#open>
*/
open?: string | undefined;
}
/**
* dialog renders the [`dialog`](https://developer.mozilla.org/docs/Web/HTML/Element/dialog) element.
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/dialog>
*/
export function dialog(
props?: DialogElementProps,
...children: string[]
): string {
return renderElement("dialog", props as AnyProps, false, children);
}