npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@brnbio/vue-material-design-icons

v1.1.0

Published

A collection of material design icons as Vue 3 components with TypeScript support

Readme

Vue Material Design Icon Components

A collection of Material Design Icons for Vue 3, exported as components with TypeScript support. Sourced from the MaterialDesign project.

Features

  • 🎯 Vue 3 Composition API - Built for modern Vue 3 applications
  • 📦 Tree-shakable - Only import the icons you need
  • 🎨 TypeScript Support - Full type definitions included
  • Lightweight - Minimal runtime overhead
  • Accessible - ARIA attributes included
  • 🔧 Reactive - All props are reactive and work with Vue's reactivity system

Installation

npm install @brnbio/vue-material-design-icons

or

yarn add @brnbio/vue-material-design-icons

or

pnpm add @brnbio/vue-material-design-icons

Usage

Basic Usage (Recommended)

Import icons directly from the package using named exports:

<script setup lang="ts">
import { Menu, Android, Home } from '@brnbio/vue-material-design-icons';
</script>

<template>
  <Menu />
  <Android :size="32" />
  <Home fillColor="#ff0000" title="Home" />
</template>

With Options API

<script lang="ts">
import { defineComponent } from 'vue';
import { Menu, Android } from '@brnbio/vue-material-design-icons';

export default defineComponent({
  components: {
    Menu,
    Android,
  },
});
</script>

<template>
  <Menu />
  <Android :size="48" />
</template>

Global Registration

import { createApp } from 'vue';
import { Menu, Android, Home } from '@brnbio/vue-material-design-icons';
import App from './App.vue';

const app = createApp(App);

app.component('MenuIcon', Menu);
app.component('AndroidIcon', Android);
app.component('HomeIcon', Home);

app.mount('#app');

Optional Stylesheet

Add the included CSS to make icons scale with surrounding text:

import '@brnbio/vue-material-design-icons/styles.css';

Note: If you intend to handle sizing with the size prop, you may not want to use this as it may conflict.

Props

All icons accept the following props:

| Prop | Type | Default | Description | |------|------|---------|-------------| | title | string | undefined | Accessible title for screen readers. If provided, sets aria-label. If not provided, icon is hidden from screen readers with aria-hidden="true". | | fillColor | string | 'currentColor' | Fill color of the icon. Accepts any valid CSS color value. | | size | number \| string | 24 | Size of the icon (width and height in pixels). |

Examples

<template>
  <!-- Basic usage -->
  <Menu />

  <!-- With title for accessibility -->
  <Android title="Android operating system" />

  <!-- Custom size -->
  <Home :size="32" />

  <!-- Custom color -->
  <Heart fillColor="#ff0000" />

  <!-- Combine multiple props -->
  <Star
    title="Favorite"
    fillColor="gold"
    :size="48"
  />

  <!-- Click event -->
  <Close @click="handleClose" />
</template>

Additional Attributes

All icons support v-bind="$attrs", which means you can pass any HTML attributes:

<Menu
  class="my-custom-class"
  style="margin: 10px"
  data-testid="menu-icon"
/>

Icons

A list of all available icons can be found at the Material Design Icons website.

The icons are exported with PascalCase names. For example:

  • accountAccount
  • arrow-leftArrowLeft
  • checkbox-marked-circleCheckboxMarkedCircle
  • ultra-high-definitionUltraHighDefinition

Import them like this:

import { Account, ArrowLeft, CheckboxMarkedCircle } from '@brnbio/vue-material-design-icons';

TypeScript Support

This library is written in TypeScript and includes full type definitions. You'll get autocomplete and type checking out of the box:

import type { IconProps } from '@brnbio/vue-material-design-icons';
import { Menu } from '@brnbio/vue-material-design-icons';

const iconProps: IconProps = {
  title: 'Menu',
  fillColor: 'blue',
  size: 32,
};

Custom Styling

If you want custom sizing with CSS classes, you can add your own styles:

.material-design-icon.icon-2x {
  height: 2em;
  width: 2em;
}

.material-design-icon.icon-2x > .material-design-icon__svg {
  height: 2em;
  width: 2em;
}

Then use it in your component:

<template>
  <Menu class="icon-2x" />
</template>

Alternatively, use the size prop for dynamic sizing:

<template>
  <Menu :size="48" />
</template>