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