summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Martijn van der Ven <martijn@vanderven.se> 2023-12-25 17:18:42 +0100
committerGravatar GitHub <noreply@github.com> 2023-12-25 11:18:42 -0500
commitbb1438d20d325acd15f3755c6e306e45a7c64bcd (patch)
tree061c04f3bb842d7979e3d0117436c9387b3d49b0
parenteb36e95596fcdb3db4a31744e910495e22e3af84 (diff)
downloadastro-bb1438d20d325acd15f3755c6e306e45a7c64bcd.tar.gz
astro-bb1438d20d325acd15f3755c6e306e45a7c64bcd.tar.zst
astro-bb1438d20d325acd15f3755c6e306e45a7c64bcd.zip
Add autocomplete to button JSX type (#9522)
* Add autocomplete to button JSX type 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 * Run `pnpm exec changeset`
-rw-r--r--.changeset/beige-zebras-ring.md5
-rw-r--r--packages/astro/astro-jsx.d.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/beige-zebras-ring.md b/.changeset/beige-zebras-ring.md
new file mode 100644
index 000000000..f81f6aa6f
--- /dev/null
+++ b/.changeset/beige-zebras-ring.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Add support for autocomplete attribute to the HTML button type.
diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts
index 46202644a..fd4632eae 100644
--- a/packages/astro/astro-jsx.d.ts
+++ b/packages/astro/astro-jsx.d.ts
@@ -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;