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