diff --git a/.changeset/metal-doors-rhyme.md b/.changeset/metal-doors-rhyme.md new file mode 100644 index 000000000000..cb84bdb471db --- /dev/null +++ b/.changeset/metal-doors-rhyme.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Added Astro attributes to SVG elements in JSX definition diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 02dc9a11e876..c9cfd9e17b07 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -621,7 +621,10 @@ declare namespace astroHTML.JSX { // - "number | string" // - "string" // - union of string literals - interface SVGAttributes extends AriaAttributes, DOMAttributes { + interface SVGAttributes + extends AriaAttributes, + DOMAttributes, + AstroBuiltinAttributes { // Attributes which also defined in HTMLAttributes className?: string | undefined | null; class?: string | undefined | null;