Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #100595

    I would like to use a material icon like this:
    <smart-button id=”menu-btn”>
    <i class=”material-icons”>menu</i>
    The code snippet shows me the text ‘menu’ instead of the image. I think I have to include a stylesheet. How should I do that in a Vue app?


    Hi olaf@xso,
    Add the following CSS to you CSS stylesheet and import it in your App.vue file:

    @font-face {
      font-family: 'Material Icons';
      font-style: normal;
      font-weight: 400;
      src: url(; /* For IE6-8 */
      src: local('Material Icons'),
        url( format('woff2'),
        url( format('woff'),
        url( format('truetype');
    .material-icons {
      font-family: 'Material Icons';
      font-weight: normal;
      font-style: normal;
      font-size: 24px;  /* Preferred icon size */
      display: inline-block;
      line-height: 1;
      text-transform: none;
      letter-spacing: normal;
      word-wrap: normal;
      white-space: nowrap;
      direction: ltr;
      /* Support for all WebKit browsers. */
      -webkit-font-smoothing: antialiased;
      /* Support for Safari and Chrome. */
      text-rendering: optimizeLegibility;
      /* Support for Firefox. */
      -moz-osx-font-smoothing: grayscale;
      /* Support for IE. */
      font-feature-settings: 'liga';

    If you don’t want to fetch the icons from the web and instead use yout localy downloaded files from NPM just replace the urls in the font-face with the path to the appropriate files in your local storage.
    Best Regards,
    Smart HTML Elements Team

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.