diff --git a/packages/icons-scripts/scripts/output/react.js b/packages/icons-scripts/scripts/output/react.js index 15d64438..a122be14 100644 --- a/packages/icons-scripts/scripts/output/react.js +++ b/packages/icons-scripts/scripts/output/react.js @@ -48,7 +48,7 @@ export const ${componentName}: React.FC<${componentName}Props> & ${typeAssigns} viewBox={viewBox} width={width} height={height} - style={{color: fill, ...style}} + style={fill ? { color: fill, ...style } : style} ${attrs ? `{...${JSON.stringify(attrs)}}` : ''} {...restProps} >