@iconify-prerendered/vue-mdi

Material Design Icons components for Vue. Designed for ease of use and high performance
26,687 111
Install
npm install @iconify-prerendered/vue-mdi
Latest Version:0.28.1737398331
Vue:3
Older releases:1 · 2
License:Apache-2.0
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: kozack

Important

This project is maintained by developer from Ukraine 🇺🇦

I do my best, but due to Russia's ongoing full-scale invasion of Ukraine, I barely have the energy to support open source projects.

If my work has been useful to you, please consider supporting Ukraine or me personally.

Even your $1 has an impact!


Material Design Icons components for Vue

Designed for ease of use and high performance. Each icon in set is a standalone component.

Features

  • Easy to use
    • No plugins required! Compatible with any build tools.
    • Designed for the best compatibility with IDE auto-completion (Demo).
    • Zero dependencies.
    • SSR / SSG friendly.
    • TypeScript support.
  • High performance
    • Does not require any external resources like fonts, css, images.
    • The icon code is embedded in your bundle.
    • Supports tree shaking, so only those icons that you have used will be included in the bundle.
    • Works offline.
  • Powered by iconify.

Usage

<script setup>
// Import components as usual
import {
	IconAccountCheck,
	IconBellAlertOutline,
	IconCalendarEdit,
	IconSkipPrevious,
	IconHomeVariant,
	IconLockOpenOutline,
} from '@iconify-prerendered/vue-mdi'
</script>

<template>
	<!-- And just use it in template -->
  	<IconAccountCheck/>
	<IconBellAlertOutline/>
	<IconCalendarEdit/>
	<IconSkipPrevious/>
	<IconHomeVariant/>
	<IconLockOpenOutline/>
</template>

Only these three icons will be included in your bundle. Your bundler may tree-shake all other icons.

That's all you need. No plugins, extra configs, IDE extensions or something else.

Customizing icon default attributes

By default, all icons have only two attributes: role="img" and aria-hidden="true". While you are free to redefine these attributes or add new ones for each icon, you might want to apply certain attributes, such as class or style, to all icons within a set.

To achieve this, you can re-export icons through a new Proxy and include default attributes

import * as defaultIcons from '@iconify-prerendered/vue-mdi';

// accessing to icon through this Proxy will add additional attributes
export const themedIcons = new Proxy({}, {
  get(_, iconKey) {
    return () =>
      defaultIcons[iconKey](https://github.com/cawa-93/iconify-prerendered/blob/HEAD/{
        class: 'pre-defined-class',
        // ... any other attributes
      });
  },
});

See full docs or other available icons sets.

Related Packages

nuxtjs-mdi-font

Material Design Icons for Nuxt app

9,987 1
vue-material-design-icons

A collection of material design icons as Vue single file components

3,140,911 171
vue-material-design-icons-size

A collection of material design icons as Vue single file components

35,593
paw-vue-icons

A collection of material design icons as Vue single file components

16,984 171
@aautcq/nuxt-iconify-fontawesome

Use Font Awesome icons with popular Nuxt modules Nuxt Icon and NuxtUI

2,279 0

Version History

Version Released License
0.28.1737398331 Apache-2.0
0.28.1718880438 Apache-2.0
0.26.1718880438 Apache-2.0
0.25.1718880438 Apache-2.0
0.24.1718880438 Apache-2.0