mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-09-01 01:52:00 +02:00
svgr icons build
This commit is contained in:
12
.build/svgr-template.js
Normal file
12
.build/svgr-template.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function template(
|
||||
{ template },
|
||||
opts,
|
||||
{ imports, componentName, props, jsx, exports },
|
||||
) {
|
||||
return template.ast`
|
||||
${imports}
|
||||
const ${componentName} = (size = 24, color = "currentColor", stroke = 2, ...props) => ${jsx}
|
||||
${exports}
|
||||
`
|
||||
}
|
||||
module.exports = template;
|
Reference in New Issue
Block a user