diff options
author | 2022-04-26 11:29:25 -0400 | |
---|---|---|
committer | 2022-04-26 11:29:25 -0400 | |
commit | e4bb2767d5f44b0a97bdbd1349b9f329b324b78a (patch) | |
tree | 37c9c21e0e58cc7d72fac118f3729dccc7098f07 | |
parent | 9927e0f120a26fe597bd59fa2124b2e3065c0c6d (diff) | |
download | astro-e4bb2767d5f44b0a97bdbd1349b9f329b324b78a.tar.gz astro-e4bb2767d5f44b0a97bdbd1349b9f329b324b78a.tar.zst astro-e4bb2767d5f44b0a97bdbd1349b9f329b324b78a.zip |
Add Astro attributes to svg elements (#3205)
-rw-r--r-- | .changeset/metal-doors-rhyme.md | 5 | ||||
-rw-r--r-- | packages/astro/astro-jsx.d.ts | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/.changeset/metal-doors-rhyme.md b/.changeset/metal-doors-rhyme.md new file mode 100644 index 000000000..cb84bdb47 --- /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 02dc9a11e..c9cfd9e17 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<T extends EventTarget> extends AriaAttributes, DOMAttributes<T> { + interface SVGAttributes<T extends EventTarget> + extends AriaAttributes, + DOMAttributes<T>, + AstroBuiltinAttributes { // Attributes which also defined in HTMLAttributes className?: string | undefined | null; class?: string | undefined | null; |