Skip to content

Commit

Permalink
feat(html): add more attributes (#275)
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Duteil <douglasduteil@gmail.com>
Signed-off-by: Arthur Fiorette <47537704+arthurfiorette@users.noreply.github.com>
Co-authored-by: Arthur Fiorette <47537704+arthurfiorette@users.noreply.github.com>
  • Loading branch information
douglasduteil and arthurfiorette authored Sep 9, 2024
1 parent 04253b3 commit 8b43900
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-wasps-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kitajs/html": patch
---

add more html attributes
18 changes: 16 additions & 2 deletions packages/html/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,21 @@ declare namespace JSX {
scoped?: undefined | string;
}

interface HtmlTableTag extends HtmlTag {}
interface HtmlTableTag extends HtmlTag {
align?: undefined | 'left' | 'center' | 'right';
border?: undefined | number;
cellpadding?: undefined | number | string;
cellspacing?: undefined | number | string;
width?: undefined | number | string;
}

interface HtmlTableDataCellTag extends HtmlTag {
align?: undefined | "left" | "center" | "right";
colspan?: undefined | string | number;
rowspan?: undefined | string | number;
headers?: undefined | string;
/** @deprecated */
valign?: undefined | "top" | "middle" | "bottom" | "baseline";
}

interface HtmlTextAreaTag extends HtmlTag {
Expand All @@ -525,6 +534,9 @@ declare namespace JSX {
rowspan?: undefined | string | number;
headers?: undefined | string;
scope?: undefined | string;
/** @deprecated */
valign?: undefined | "top" | "middle" | "bottom" | "baseline";
width?: undefined | number | string;
}

interface HtmlTimeTag extends HtmlTag {
Expand Down Expand Up @@ -650,7 +662,9 @@ declare namespace JSX {

interface HtmlEmbedTag extends MediaEvents {}

interface HtmlImageTag extends MediaEvents {}
interface HtmlImageTag extends MediaEvents {
border?: undefined | number;
}

interface HtmlObjectTag extends MediaEvents {}

Expand Down

0 comments on commit 8b43900

Please sign in to comment.