Skip to content

Commit

Permalink
feat(html): Add picture tag and srcset to Source tag (#176)
Browse files Browse the repository at this point in the history
* add Picture tag and srcset to Source tag

* include changeset
  • Loading branch information
ArkahnX authored Apr 3, 2024
1 parent dc012f0 commit 4ffe38c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-walls-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kitajs/html': minor
---

add Picture tag and srcset to Source tag
4 changes: 4 additions & 0 deletions packages/html/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ declare namespace JSX {
value?: undefined | string;
}

interface HtmlPictureTag extends HtmlTag {}

interface HtmlProgressTag extends HtmlTag {
value?: undefined | string | number;
max?: undefined | string | number;
Expand Down Expand Up @@ -469,6 +471,7 @@ declare namespace JSX {

interface HtmlSourceTag extends HtmlTag {
src?: undefined | string;
srcset?: undefined | string;
type?: undefined | string;
media?: undefined | string;
}
Expand Down Expand Up @@ -780,6 +783,7 @@ declare namespace JSX {
param: HtmlParamTag;
path: HtmlSvgTag;
pattern: HtmlSvgTag;
picture: HtmlPictureTag;
polygon: HtmlSvgTag;
polyline: HtmlSvgTag;
pre: HtmlTag;
Expand Down

0 comments on commit 4ffe38c

Please sign in to comment.