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}`;