Add Astro attributes to svg elements (#3205)
This commit is contained in:
parent
9927e0f120
commit
e4bb2767d5
2 changed files with 9 additions and 1 deletions
5
.changeset/metal-doors-rhyme.md
Normal file
5
.changeset/metal-doors-rhyme.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Added Astro attributes to SVG elements in JSX definition
|
5
packages/astro/astro-jsx.d.ts
vendored
5
packages/astro/astro-jsx.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue