From fce43e1d78079fa685258fdb3b5c5e97c65df585 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Thu, 16 May 2024 01:24:52 +0200 Subject: [PATCH] fix: Preact adapter spreading props as children (#1084) --- packages/icons-preact/src/createPreactComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icons-preact/src/createPreactComponent.ts b/packages/icons-preact/src/createPreactComponent.ts index 22bc1e09c..d6115bb34 100644 --- a/packages/icons-preact/src/createPreactComponent.ts +++ b/packages/icons-preact/src/createPreactComponent.ts @@ -33,9 +33,9 @@ const createPreactComponent = ( stroke: color, }), style, + ...rest, }, [...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...toChildArray(children)], - ...[rest], ); Component.displayName = `${iconNamePascal}`;