Skip to content

Commit

Permalink
feat: add inputmode to HtmlTag (#202)
Browse files Browse the repository at this point in the history
* Add `inputmode` to `HtmlTag`

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode is missing from the types, though transpiling fine. This is a small type patch.

Signed-off-by: Sergei Kniazev <sbeirakh@gmail.com>

* add changeset

* allow inputmode to be any string while keeping autocomplete

* Update packages/html/jsx.d.ts

Signed-off-by: Arthur Fiorette <47537704+arthurfiorette@users.noreply.github.com>

---------

Signed-off-by: Sergei Kniazev <sbeirakh@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
Jeaciaz and arthurfiorette authored May 6, 2024
1 parent 267ad71 commit aa57511
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-pens-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kitajs/html': patch
---

add `inputmode` attribute to Typescript typings
11 changes: 11 additions & 0 deletions packages/html/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ declare namespace JSX {
interface HtmlTag extends ElementChildrenAttribute, IntrinsicAttributes {
accesskey?: undefined | string;
contenteditable?: undefined | string;
inputmode?:
| undefined
| 'none'
| 'text'
| 'decimal'
| 'numeric'
| 'tel'
| 'search'
| 'email'
| 'url'
| AnyString;
dir?: undefined | string;
hidden?: undefined | string | boolean;
id?: undefined | number | string;
Expand Down

0 comments on commit aa57511

Please sign in to comment.