Skip to content

Commit

Permalink
Add Astro attributes to svg elements (#3205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Apr 26, 2022
1 parent 9927e0f commit e4bb276
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-doors-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Added Astro attributes to SVG elements in JSX definition
5 changes: 4 additions & 1 deletion packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4bb276

Please sign in to comment.