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