
Description
vue-material-design-icons is a collection of Material Design icons packaged as Vue single-file components. The icons are sourced from the MaterialDesign project, and the package includes a small stylesheet that makes the icons scale with the text around them. You install the package and then either import an icon and declare it as a local component, or declare it globally. Icon files are named in PascalCase, such as CheckboxMarkedCircle.vue, and their default component name has Icon appended, such as CheckboxMarkedCircleIcon. Three props control the output. The title prop sets the hover tooltip and the screen reader title. The README says icons without a title are hidden from screen readers, so developers are encouraged to give meaningful titles. The fillColor prop sets the fill colour from JavaScript, although CSS fill rules from the optional stylesheet can override it. The size prop overrides the width and height of the SVG and defaults to 24. Type declarations are included, so imports such as vue-material-design-icons/Menu.vue are typed without extra setup.…
Highlights
- Material Design icons as Vue single-file components
- title, fillColor and size props
- Optional stylesheet to scale icons with text
- TypeScript declarations included
- Local or global component registration
Ratings & Reviews
No ratings yet
Be the first to rate vue-material-design-icons.
People also visit
vue-material-design-icons FAQ
What is this package?
A collection of Material Design icons as Vue single-file components, sourced from the MaterialDesign project.
How do I use an icon?
Install the package, then import the icon and declare it as a local component, or declare it globally. Use it in your template like any other component.
How do I keep icons accessible?
Set the title prop. It becomes the hover tooltip and the screen reader title. The README says icons without a title are hidden from screen readers.
How do I change the size or colour?
Use the size prop to override the width and height, which default to 24. Use fillColor to set the fill from JavaScript.
Does it support TypeScript?
Yes. Type declarations are included, so imports such as vue-material-design-icons/Menu.vue are typed without extra configuration.
What are the best vue-material-design-icons alternatives?
Popular alternatives to vue-material-design-icons include oh-vue-icons, @phosphor-icons/vue and vue-svgicon. See all vue-material-design-icons alternatives













