castor-icons:作为SVG和React组件发布的Castor图标集

时间:2021-03-08 16:03:03
【文件属性】:
文件名称:castor-icons:作为SVG和React组件发布的Castor图标集
文件大小:221KB
文件格式:ZIP
更新时间:2021-03-08 16:03:03
svg-icons react-icons castor TypeScript 脚轮图标· 这是Castor的附加项,提供了选定和自定义图标的集合。 开始吧 安装包: npm install @onfido/castor-icons 然后通过遵循普通/捆绑代码方法或使用React组件使图标可用。 与普通代码一起使用 当引用要使用的图标的片段标识符时,将通过元素链接到icons.svg小精灵。 该精灵必须是公共的,可以从此程序包的svg目录复制它,或配置捆绑程序来这样做。 之后,您可以轻松地将图标添加到HTML代码中,例如,如果将“ passport”复制到相同的.castor-icons目录,则可以: < svg fill =" currentColor " focusable =" false " height =" 24 " width =" 24 " > < use href =" /.castor-icons/icons.svg#pass
【文件预览】:
castor-icons-main
----.eslintrc.json(108B)
----.versionrc.json(125B)
----.lintstagedrc.json(173B)
----.github()
--------PULL_REQUEST_TEMPLATE.md(268B)
--------dependabot.yml(206B)
--------workflows()
----src()
--------icons.json(7KB)
--------svg()
----scripts()
--------build.ts(4KB)
----.czrc(42B)
----.stylelintrc.json(45B)
----.prettierrc.json(26B)
----CONTRIBUTING.md(4KB)
----tsconfig.json(565B)
----LICENSE(11KB)
----README.md(4KB)
----.husky()
--------commit-msg(77B)
--------pre-commit(58B)
--------prepare-commit-msg(83B)
--------.gitignore(2B)
----.commitlintrc.json(53B)
----.npmrc(19B)
----templates()
--------example.html(2KB)
----.gitignore(321B)
----svgo.config.js(722B)
----.svgrrc.json(120B)
----CHANGELOG.md(2KB)
----package-lock.json(809KB)
----tsconfig.generated.json(139B)
----package.json(2KB)
----.nvmrc(3B)

网友评论