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