Skip to content

Commit

Permalink
Add autocomplete to button JSX type
Browse files Browse the repository at this point in the history
This is “nonstandard and Firefox-specific” but often required when working with dynamic disabled state.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autocomplete
  • Loading branch information
Zegnat authored Dec 25, 2023
1 parent eb36e95 commit 7c5d181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ declare namespace astroHTML.JSX {
}

interface ButtonHTMLAttributes extends HTMLAttributes {
autocomplete?: string | undefined | null;
disabled?: boolean | string | undefined | null;
form?: string | undefined | null;
formaction?: string | undefined | null;
Expand Down

0 comments on commit 7c5d181

Please sign in to comment.