mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-21 21:39:21 +01:00
Lucide Vue Package (#174)
* add configs
* Add vue components
* Add documentation
* add alpha release version
* improve npm ignore files
* add tests
* Make style and class attrs work
* 📦 bump version
* Add Icon suffix for component names
* bump version
* Add icon component example
* remove space
* improvements package.json
* update tests
* update workflow
This commit is contained in:
8
packages/lucide-vue/scripts/exportTemplate.js
Normal file
8
packages/lucide-vue/scripts/exportTemplate.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default ({ componentName, node }) => `
|
||||
import createVueComponent from '../createVueComponent';
|
||||
import defaultAttributes from '../defaultAttributes';
|
||||
|
||||
const ${componentName} = createVueComponent('${componentName}Icon', ['svg', defaultAttributes, ${node}]);
|
||||
|
||||
export default ${componentName};
|
||||
`;
|
||||
Reference in New Issue
Block a user