No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Using Material Icons in v1 Beta 23

    Framework
    5
    10
    452
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Patrick Spiegel last edited by Patrick Spiegel

      Hello, it seems like you kiled the @quasar/extras package and moved its content into the main repository.

      However, when I follow the instructions on how to use the new icon-sets I get the icon names instead of the icons in my application.
      https://v1.quasar-framework.org/options/quasar-icon-sets#Introduction

      This is how I have initialized the icons.

      Vue.use(Quasar, {
        iconSet: require("quasar/icon-set/material-icons").default
      });
      

      Pretty simple, but I don’t know what else to do. No error messages.

      I am using TypeScript + Vue-CLI v3

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Hi,

        1. @quasar/extras never existed before v1.0. It existed as quasar-extras package which is now deprecated.
        2. Moving its repo to main Quasar repo does not influence the package name.
        3. Are you trying to install a Quasar Icon Set or an Icon Library? There’s a huge difference.

        Installing Icon Libraries: https://v1.quasar-framework.org/options/installing-icon-libraries
        Specifying Quasar Icon Set: https://v1.quasar-framework.org/options/quasar-icon-sets

        1 Reply Last reply Reply Quote 0
        • P
          Patrick Spiegel last edited by

          Well this entry has been added by the vue quasar plugin.

          "dependencies": {
              "@quasar/extras": "^1.0.0",
          

          I used to import material icons and roboto font this way:

          import "@quasar/extras/roboto-font/roboto-font.css";
          import "@quasar/extras/material-icons/material-icons.css";
          

          Maybe that helps with the confusion.

          1 Reply Last reply Reply Quote 0
          • Hawkeye64
            Hawkeye64 last edited by

            @Patrick-Spiegel In your quasar.conf.js all you need to do is like this:

                extras: [
                  'roboto-font',
                  'material-icons', // optional, you are not bound to it
                  // 'ionicons-v4',
                  // 'mdi-v3',
                  'fontawesome-v5'
                  // 'eva-icons'
                ],
            
            P 1 Reply Last reply Reply Quote 0
            • P
              Patrick Spiegel @Hawkeye64 last edited by

              @Hawkeye64 yes, that works when you are using the Quasar CLI. But for TypeScript the Vue CLI works just better out of the box.

              1 Reply Last reply Reply Quote 0
              • Hawkeye64
                Hawkeye64 last edited by

                @Patrick-Spiegel
                I find I get a way better user experience for a Quasar project to use the Quasar CLI. It wouldn’t even cross my mind to deprecate to the Vue CLI.

                1 Reply Last reply Reply Quote 0
                • labs20
                  labs20 last edited by labs20

                  Sorry, I’m must be doing something stupid, but cant figure it out.

                  I cant change to use any of the other icons libraries, I’m keep getting the names on the browser instead of the actual icons.

                  Its a fresh V1 created project and all I did was went to quasar.conf and comment ‘material-icons’ and uncommented ‘mdi-v3’.

                      extras: [
                        'roboto-font',
                        // 'material-icons' // optional, you are not bound to it
                        //'ionicons-v4',
                        'mdi-v3',
                        // 'fontawesome-v5',
                        //'eva-icons'
                      ],
                  
                  

                  Help?

                  1 Reply Last reply Reply Quote 0
                  • labs20
                    labs20 last edited by

                    Annnnnnnd… the Special Stupid Award goes to me.

                    I was not placing the prefix on icon name.

                    q-icon(name="menu")           // Kids, don't do this
                    q-icon(name="mdi-menu")   // Much better
                    

                    Thanks and please ignore me while I’m burning in shame…

                    1 Reply Last reply Reply Quote 0
                    • M
                      MAHTA last edited by

                      I LOVE quasar-framework

                      1 Reply Last reply Reply Quote 0
                      • Hawkeye64
                        Hawkeye64 last edited by

                        @labs20 Glad you figured it out. 🙂

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post