mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-19 20:32:25 +02:00
stroke props
This commit is contained in:
@@ -570,7 +570,7 @@ gulp.task('svg-to-react', gulp.series('clean-react', async function (cb) {
|
||||
};
|
||||
|
||||
let indexCode = '',
|
||||
indexDCode = `import { FC, SVGAttributes } from 'react';\n\ninterface TablerIconProps extends SVGAttributes<SVGElement> { color?: string; size?: string | number; }\n\ntype TablerIcon = FC<TablerIconProps>;\n\n`;
|
||||
indexDCode = `import { FC, SVGAttributes } from 'react';\n\ninterface TablerIconProps extends SVGAttributes<SVGElement> { color?: string; size?: string | number; stroke?: string | number; }\n\ntype TablerIcon = FC<TablerIconProps>;\n\n`;
|
||||
|
||||
await asyncForEach(files, async function (file) {
|
||||
const svgCode = optimizeSvgCode(fs.readFileSync(file).toString()),
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { FC, SVGAttributes } from 'react';
|
||||
|
||||
interface TablerIconProps extends SVGAttributes<SVGElement> { color?: string; size?: string | number; }
|
||||
interface TablerIconProps extends SVGAttributes<SVGElement> { color?: string; size?: string | number; stroke?: string | number; }
|
||||
|
||||
type TablerIcon = FC<TablerIconProps>;
|
||||
|
||||
|
Reference in New Issue
Block a user