diff --git a/packages/lib/src/types.dom.ts b/packages/lib/src/types.dom.ts index 3c8f0fa6..577692a4 100644 --- a/packages/lib/src/types.dom.ts +++ b/packages/lib/src/types.dom.ts @@ -693,6 +693,14 @@ interface SvgElementAttributes { mask?: string opacity?: string | number } + linearGradient: { + x1?: string | number + y1?: string | number + x2?: string | number + y2?: string | number + gradientUnits?: "userSpaceOnUse" | "objectBoundingBox" + gradientTransform?: string + } mask: { x?: string | number y?: string | number @@ -728,6 +736,11 @@ interface SvgElementAttributes { mask?: string opacity?: string | number } + stop: { + offset?: string + stopColor?: string + stopOpacity?: string + } svg: { width?: string | number height?: string | number diff --git a/packages/lib/src/utils.ts b/packages/lib/src/utils.ts index 0f4a34f2..9d1fd1dd 100644 --- a/packages/lib/src/utils.ts +++ b/packages/lib/src/utils.ts @@ -134,6 +134,7 @@ const svgTags = [ "circle", "ellipse", "g", + "defs", "line", "path", "polygon", diff --git a/sandbox/csr/src/App.tsx b/sandbox/csr/src/App.tsx index 897c8830..ca04bc52 100644 --- a/sandbox/csr/src/App.tsx +++ b/sandbox/csr/src/App.tsx @@ -79,6 +79,7 @@ export function App() {

Uh-oh! Page not found :C

} /> + ) } @@ -147,3 +148,46 @@ function KeyedCounterItem({ id, move, remove }: KeyedCounterProps) { ) } + +function MyComponent() { + return ( + + + + + + + + + + + + + + + + + + ) +}