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

    How to add a label to an q-icon?

    Framework
    icon q-icon
    2
    5
    725
    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.
    • J
      johnm last edited by

      How can I add a label to an icon like samples in the image below?

      washing-icons.png

      beets 1 Reply Last reply Reply Quote 0
      • beets
        beets @johnm last edited by

        @johnm I don’t think there’s any built in way, but why not just simple HTML like this: https://codepen.io/pianopronto/pen/XWNjPje?editors=101

        1 Reply Last reply Reply Quote 0
        • J
          johnm last edited by johnm

          @beets My current use case is for rendering the icon inside of a q-input. I’d like the user to know what the icon is for.

          q-item-label seems to work but I want it below the icon

          https://codepen.io/johnm_cp/pen/KKNgGvR?editors=101

          beets 1 Reply Last reply Reply Quote 0
          • beets
            beets @johnm last edited by

            @johnm How about this: https://codepen.io/pianopronto/pen/mdOrQPp?editors=101 ?

            1 Reply Last reply Reply Quote 1
            • J
              johnm last edited by

              @beets Yeah looks good. thanks!

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