mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-01-17 20:58:34 +01:00
stroke props
This commit is contained in:
parent
76a9ff5e8a
commit
e064878107
@ -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>;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user