Skip to content

Commit

Permalink
Add data-* to svg attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti authored Jul 24, 2023
1 parent 5cd4f77 commit 7e9053c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/svelte/elements.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,9 @@ export interface SVGAttributes<T extends EventTarget> extends AriaAttributes, DO
yChannelSelector?: string | undefined | null;
z?: number | string | undefined | null;
zoomAndPan?: string | undefined | null;

// allow any data- attribute
[key: `data-${string}`]: any;
}

export interface HTMLWebViewAttributes extends HTMLAttributes<HTMLElement> {
Expand Down

0 comments on commit 7e9053c

Please sign in to comment.