svg-spreact:使用svgson创建svg精灵并做出React

时间:2021-05-13 00:29:34
【文件属性】:
文件名称:svg-spreact:使用svgson创建svg精灵并做出React
文件大小:50KB
文件格式:ZIP
更新时间:2021-05-13 00:29:34
react svg icons svg-icons svg-files 使用创建SVG精灵并 安装 yarn add svg-spreact 用法 const svgSpreact = require('svg-spreact') const icons = [ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Add</title> <path data-name="layer1" fill="none" stroke="#202020" stroke-miterlimit="10" stroke-width="2" d="M32 16v32m16-16H16" stroke-linejoin="round" stroke-linecap="round
【文件预览】:
svg-spreact-master
----.gitignore(84B)
----README.md(2KB)
----example.js(935B)
----.prettierrc(69B)
----package.json(602B)
----index.js(3KB)
----createElement.js(613B)
----test.js(3KB)
----yarn.lock(102KB)
----.npmrc(17B)
----logo.svg(4KB)

网友评论