Add Astro attributes to svg elements (#3205)

This commit is contained in:
Erika 2022-04-26 11:29:25 -04:00 committed by GitHub
parent 9927e0f120
commit e4bb2767d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Added Astro attributes to SVG elements in JSX definition

View file

@ -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;