项目作者: Eveio

项目描述 :
The icon set used by eve's application as Vue components
高级语言: Vue
项目地址: git://github.com/Eveio/icons.git
创建时间: 2021-02-10T09:11:16Z
项目社区:https://github.com/Eveio/icons

开源协议:

下载


npm (scoped)" class="reference-link">eve-icons Unit Tests @eveio/icons" alt="npm (scoped)">

The SVG icon set used by eve’s front-end application as Vue components. See the list of the icons here.

Installation

  1. yarn add @eveio/icons
  2. # Install Vue as a peer dependency
  3. yarn add vue@2.6

Usage

Import and use the components from @eveio/icons. You can find the list of the icons and their names here.

  1. <template>
  2. <div>
  3. <IconAccreditation></IconAccreditation>
  4. </div>
  5. </template>
  6. <script>
  7. import { IconAccreditation } from '@eveio/icons'
  8. export default {
  9. components: {
  10. IconAccreditation
  11. }
  12. }
  13. </script>

The icon components support several sizes via the class attribute:

  • <IconAccreditation></IconAccreditation>: width: 20px; height: 20px
  • <IconAccreditation class="icon-xs"></IconAccreditation>: width: 16px; height: 16px
  • <IconAccreditation class="icon-m"></IconAccreditation>: width: 40px; height: 40px
  • <IconAccreditation class="icon-l"></IconAccreditation>: width: 64px; height: 64px
  • <IconAccreditation class="icon-xl"></IconAccreditation>: width: 96px; height: 96px
  • <IconAccreditation class="icon-xxl"></IconAccreditation>: width: 128px; height: 128px

A rotate class will apply a “rotate” animation on the icon, suitable for e.g., IconLoading.
Any extra custom class will fall through to the component’s root <svg> tag.

Development

  1. yarn install # install the dependencies
  2. yarn build # build the components
  3. yarn demo # build the demo icon-listing page
  4. yarn test # run the test suite

License

MIT