diff --git a/.changeset/witty-cougars-allow.md b/.changeset/witty-cougars-allow.md new file mode 100644 index 000000000000..15eaa1d554a3 --- /dev/null +++ b/.changeset/witty-cougars-allow.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Add `popovertargetaction` to the attribute that can be passed to the `button` and `input` element diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 7c2846efc076..acf051af0d92 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -649,6 +649,7 @@ declare namespace astroHTML.JSX { type?: 'submit' | 'reset' | 'button' | undefined | null; value?: string | string[] | number | undefined | null; popovertarget?: string | undefined | null; + popovertargetaction?: "hide" | "show" | "toggle" | undefined | null; } interface CanvasHTMLAttributes extends HTMLAttributes { @@ -815,6 +816,7 @@ declare namespace astroHTML.JSX { value?: string | string[] | number | undefined | null; width?: number | string | undefined | null; popovertarget?: string | undefined | null; + popovertargetaction?: "hide" | "show" | "toggle" | undefined | null; } interface KeygenHTMLAttributes extends HTMLAttributes {