-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use consistent prop names across all elements
- Loading branch information
1 parent
71ccc40
commit 4ffdd71
Showing
133 changed files
with
1,675 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* AbbrElementProps are the props for the [`abbr`](https://developer.mozilla.org/docs/Web/HTML/Element/abbr) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/abbr> | ||
*/ | ||
export type AbbrElementProps = GlobalAttributes; | ||
|
||
/** | ||
* abbr renders the [`abbr`](https://developer.mozilla.org/docs/Web/HTML/Element/abbr) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/abbr> | ||
*/ | ||
export function abbr(props?: GlobalAttributes, ...children: string[]): string { | ||
export function abbr(props?: AbbrElementProps, ...children: string[]): string { | ||
return renderElement("abbr", props as AnyProps, false, children); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* AsideElementProps are the props for the [`aside`](https://developer.mozilla.org/docs/Web/HTML/Element/aside) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/aside> | ||
*/ | ||
export type AsideElementProps = GlobalAttributes; | ||
|
||
/** | ||
* aside renders the [`aside`](https://developer.mozilla.org/docs/Web/HTML/Element/aside) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/aside> | ||
*/ | ||
export function aside(props?: GlobalAttributes, ...children: string[]): string { | ||
export function aside( | ||
props?: AsideElementProps, | ||
...children: string[] | ||
): string { | ||
return renderElement("aside", props as AnyProps, false, children); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BElementProps are the props for the [`b`](https://developer.mozilla.org/docs/Web/HTML/Element/b) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/b> | ||
*/ | ||
export type BElementProps = GlobalAttributes; | ||
|
||
/** | ||
* b renders the [`b`](https://developer.mozilla.org/docs/Web/HTML/Element/b) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/b> | ||
*/ | ||
export function b(props?: GlobalAttributes, ...children: string[]): string { | ||
export function b(props?: BElementProps, ...children: string[]): string { | ||
return renderElement("b", props as AnyProps, false, children); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BdiElementProps are the props for the [`bdi`](https://developer.mozilla.org/docs/Web/HTML/Element/bdi) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdi> | ||
*/ | ||
export type BdiElementProps = GlobalAttributes; | ||
|
||
/** | ||
* bdi renders the [`bdi`](https://developer.mozilla.org/docs/Web/HTML/Element/bdi) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdi> | ||
*/ | ||
export function bdi(props?: GlobalAttributes, ...children: string[]): string { | ||
export function bdi(props?: BdiElementProps, ...children: string[]): string { | ||
return renderElement("bdi", props as AnyProps, false, children); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BdoElementProps are the props for the [`bdo`](https://developer.mozilla.org/docs/Web/HTML/Element/bdo) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdo> | ||
*/ | ||
export type BdoElementProps = GlobalAttributes; | ||
|
||
/** | ||
* bdo renders the [`bdo`](https://developer.mozilla.org/docs/Web/HTML/Element/bdo) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdo> | ||
*/ | ||
export function bdo(props?: GlobalAttributes, ...children: string[]): string { | ||
export function bdo(props?: BdoElementProps, ...children: string[]): string { | ||
return renderElement("bdo", props as AnyProps, false, children); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BigElementProps are the props for the [`big`](https://developer.mozilla.org/docs/Web/HTML/Element/big) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/big> | ||
* @deprecated | ||
*/ | ||
export type BigElementProps = GlobalAttributes; | ||
|
||
/** | ||
* big renders the [`big`](https://developer.mozilla.org/docs/Web/HTML/Element/big) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/big> | ||
* @deprecated | ||
*/ | ||
export function big(props?: GlobalAttributes, ...children: string[]): string { | ||
export function big(props?: BigElementProps, ...children: string[]): string { | ||
return renderElement("big", props as AnyProps, false, children); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.