5.0.6 • Published 8 months ago

@foxandfly/mdi-vue v5.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Material Design Icons

npm

This library generates Vue 3 components for Google's Material Design icons library. https://github.com/google/material-design-icons

Usage

  1. Install the package.

    npm i @foxandfly/mdi-vue
  2. Import an icon component.

    • Option 1:
    import Map from '@foxandfly/mdi-vue/Map';
    • Option 2:
    import { Map } from '@foxandfly/mdi-vue';

    Option 1 is safer to use, but Option 2 is a bit cleaner. Make sure you utilize tree shaking if using the second approach or you will end up with a multi-MB bundle.

  3. Then use it somewhere. e.g.

    <template>
     <button>
       <Map />
       Map
     </button>
    </template>
    
    <script>
    import { Map } from '@foxandfly/mdi-vue';
    import { defineComponent } from 'vue'
    
    export default defineComponent({
      components: {
        Map,
      },
    })
    </script>

How to generate icons

  1. Fork and/or clone this repo.

  2. Install dependencies.

    npm install
  3. Run the generator script.

    npm run generate

Maintenance

Simply push a new tag and the GitHub Action will generate the components and release on NPM.

5.0.6

8 months ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.2

3 years ago

3.0.0

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago