Vuetify Tutorial #5 - Button & Icons

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 85

  • @CybercoderNaj
    @CybercoderNaj 3 года назад +24

    If email isn't working, then use mdi-email instead. "mdi" here means Material Design Icon.

    • @sirjomz473
      @sirjomz473 2 года назад +1

      THank you sir

    • @Chapa9
      @Chapa9 Год назад +1

      The answer I was looking for, thank you.

    • @darshanajayarathna9396
      @darshanajayarathna9396 Год назад +1

      Thanks! It works for me...

    • @porscheprairie3232
      @porscheprairie3232 5 месяцев назад +1

      Bro you saved me so much time. The documentation doesn't even say this lol

  • @kaan8296
    @kaan8296 5 лет назад +73

    if email is not working try to type mdi-email

    • @hcgaron
      @hcgaron 5 лет назад +18

      try adding mdi- before any icon name. For example mdi-email

    • @amraces
      @amraces 5 лет назад +4

      Yea not only that, the link you should actually view the icons is different in the docs so it's unlikely that any icon from material.io work on those, you need to get them from the way uglier site : materialdesignicons.com and put mdi- in front.

    • @rachelconatser660
      @rachelconatser660 5 лет назад +3

      You just saved me so much trial and error! Ty!!

    • @johansebasb
      @johansebasb 5 лет назад

      thanks man!

    • @darmandransivapathasundram5380
      @darmandransivapathasundram5380 4 года назад +1

      it works for me, after i added under

  • @miashanholtzer291
    @miashanholtzer291 5 лет назад +33

    An update: In vuetify@2.1.13, you must now use 'text' instead of 'flat' to create a flat button where the button outline is only seen upon mouse hover

  • @midhunmohan5112
    @midhunmohan5112 5 лет назад +95

    If "flat" prop is not working for you, use "text" prop :)

    • @newrave
      @newrave 5 лет назад +1

      thnx bro

    • @HopeEternal316
      @HopeEternal316 5 лет назад +1

      Thank you so much! I was so confused...

    • @jaypatel2903
      @jaypatel2903 4 года назад +1

      yeah but that's not changing background color whenever i hover it

    • @abbaskhan2585
      @abbaskhan2585 3 года назад +1

      great

  • @rax_4real618
    @rax_4real618 3 года назад +3

    love the community here, this course was released years ago, but you guys keep the content up-to-date. Cheers lads.

  • @zachbaird2851
    @zachbaird2851 5 лет назад +7

    Fantastic comments helping keep this course up to date!

  • @maibhassin
    @maibhassin 4 года назад +11

    if google material icons are not working for you follow these 3 steps
    1. npm install material-design-icons-iconfont --save
    2. In mian.js > import 'material-design-icons-iconfont/dist/material-design-icons.css'
    3. In vuetify.js >
    export default new Vuetify({
    iconfont: 'md',
    });
    You don't have to write mdi or anything else in front of the keyword just write the keyword as it is written on the material(dot)io/resources/icons/

    • @KaiWeissmann
      @KaiWeissmann 4 года назад

      This worked for me (although it's is main.js)!

    • @SLRModShop
      @SLRModShop 2 года назад

      Works a treat, thanks, probably saved me 30 minutes of my time!

  • @luigioctaviano
    @luigioctaviano 5 лет назад +14

    8:51 If mdi-favorite is not working, use mdi-heart.

    • @luigioctaviano
      @luigioctaviano 4 года назад

      @@sangmadenaufal6339 I got it from here: materialdesignicons.com/

  • @rafacancode
    @rafacancode 2 года назад +2

    You now have to use mdi- before the icon name e.g.(mdi-email)

  • @TheSulaimanKhaled
    @TheSulaimanKhaled 3 года назад +1

    now to add icons, you can't write immediately "email" in between . You should write mdi-email. mdi- should be pretext to your "choice"

  • @koh7445
    @koh7445 6 лет назад +3

    I love your style, every is very easy !

  • @Jenny-s9x2f
    @Jenny-s9x2f 4 года назад +2

    You are so good teacher! :)

  • @Izngd
    @Izngd 4 года назад +1

    Use the documentation, this is based on 1,5, vuetify is now on 2.0+ (No problem following a long but you need to use the documentation to double check cirtain things.

  • @kylegaijin
    @kylegaijin 4 года назад +3

    I noticed that your displays with some padding, where as mine displays flush to the left.

    • @octaviusbytes
      @octaviusbytes 4 года назад +4

      add "mx-2" inside of the class

  • @atishmhatre4895
    @atishmhatre4895 6 лет назад +3

    Hi Shaun, very good tutorial, I love your style, thank you Shaun! 👍👍❤️

  • @aspiringpro
    @aspiringpro 5 лет назад +3

    When I try to add an icon, the icon does not appear but rather just says the name. I searched Google and some people said that you have to include import the icons but I never saw you do this. Did I miss something?

    • @chad7904
      @chad7904 5 лет назад +1

      You need to add 'mdi-' before the icon name. In this case, 'mdi-email'.

    • @hongo8706
      @hongo8706 4 года назад

      @@chad7904 and left not working, help me

  • @southeanehem5707
    @southeanehem5707 4 месяца назад

    Do you know where can i find all lists of props of each vuetify component?

  • @emmanuelobakare
    @emmanuelobakare 4 года назад

    v-btn display a block button that covers the length of the whole page. How do I make it a normal button- the size of its text with padding

  • @tanveerahmad-ut3ez
    @tanveerahmad-ut3ez Год назад

    I am using vite and vue 3 but when I installed vuetify, it is not working in my project...

  • @syedhannan546
    @syedhannan546 3 года назад

    if i create a button it is occupying entire screen. how can i reduce its width by default??

  • @catalinionescu5658
    @catalinionescu5658 5 лет назад +1

    Awesome man!! Thank you very much for all your work!!

  • @gregbyrne6909
    @gregbyrne6909 4 года назад +1

    Some of the code is out of date, but think of it more of an active way to learn how to use the official documentation!

  • @ameebadiyani243
    @ameebadiyani243 4 года назад

    hii.. How to give border-color.. I am not able to do it. please help

  • @alansods123
    @alansods123 3 года назад

    Icons are not working here. It shows the name of the icon as text. How can i fix it?

  • @viamontes1
    @viamontes1 5 лет назад

    hi, how do you remove the padding for your v-btn please ?

  • @osegocodes
    @osegocodes 2 года назад

    If the flat prop doesnt work for you then replace it with plain. Alot has changed

  • @matthewjoss9596
    @matthewjoss9596 5 лет назад

    Would have loved to see you add some functionality to the buttons with @input or @click props Shaun. Where can I find tutorials like that?

  • @bayareamountainbiker
    @bayareamountainbiker 4 года назад

    I've installed every material design related dependencies and devDependencies I could find online and I still can't get the the Material Design Icons to show on my page. Can you advise why I'm getting this problem?

    • @camn9441
      @camn9441 4 года назад +1

      Most other comments said = "You need to add 'mdi-' before the icon name. Eg 'mdi-email'.
      " It worked for me. No need to install any dependencies

  • @neenus
    @neenus 5 лет назад

    Thank you for the detailed tutorial love it!

  • @jieyingtham63
    @jieyingtham63 5 лет назад

    I got the flat effect by using a text prop 3:38

  • @jamilgomes9324
    @jamilgomes9324 4 года назад

    doubt: how can i add personal icons in vuetify? I dont want to use mdi

    • @Thinhnv
      @Thinhnv 4 года назад

      vuetifyjs.com/en/customization/icons/

  • @ilkinguliyev5918
    @ilkinguliyev5918 3 года назад

    icon does not work. It gives just text instead of icon. May be you show how recognize icons first?

  • @mike-the
    @mike-the 4 года назад +5

    For not working icons: try to use this website: materialdesignicons.com/ and put mdi- prefix before each name. The one that ninja used called favorite is actually called 'heart' and it works just fine. It seems there was some updates on Vuetify since Ninja made this videos.

    • @SirMorak
      @SirMorak 3 года назад +2

      Yeah, it's strange that it's still favorite on material.io and it doesn't work with mdi-

  • @guzideesra4743
    @guzideesra4743 4 года назад

    doenst work. Do I have to import something? Thanks

  • @rabinsubedi5602
    @rabinsubedi5602 4 года назад

    I cannot add mdi-favourite icon why?

    • @mhood82
      @mhood82 4 года назад +1

      Try mdi-heart

  • @mcab2222
    @mcab2222 3 года назад

    very nice !

  • @DuyNguyen-nf3cz
    @DuyNguyen-nf3cz 5 лет назад

    Greate videos as always. Thank you!

  • @crumpz
    @crumpz 6 лет назад

    this video series need to be seem by many more people lol

  • @PuffTheMagicDragon420
    @PuffTheMagicDragon420 3 года назад

    "mdi-heart" for the favorite button icon

  • @alirustv
    @alirustv 5 лет назад +1

    Where have you been till now

  • @danangwahyu4825
    @danangwahyu4825 5 лет назад

    what accent do you use net ninja??

  • @Cho1279624
    @Cho1279624 6 лет назад

    I was here. Thanks!

  • @CerebralRiches
    @CerebralRiches 3 года назад

    depressed removes shadow? it should put shadow, makes more sense term wise lol

  • @ВладКурлук
    @ВладКурлук 6 лет назад

    Hello. It's great!

  • @hughmungus1767
    @hughmungus1767 4 года назад

    I had to do the following before the icons would work: 1. npm install material-design-icons 2. Add this to my html:

    • @TheTjurKan
      @TheTjurKan 4 года назад

      Thank you. I see some things have changed since creating this tutorial.

  • @FIREHIVE
    @FIREHIVE 5 лет назад +1

    Even buttons are depresed haha 😂

  • @chesterxp508
    @chesterxp508 Год назад

    GoodJob!

  • @Lbmaniak
    @Lbmaniak 6 лет назад

    thx

  • @chaitanyajharbadem-1740
    @chaitanyajharbadem-1740 3 года назад

    Sensei teach us your accent too 😅

  • @ellywithpluto125
    @ellywithpluto125 4 года назад

    Depressed button
    Haha that's me

  • @Anstroy95
    @Anstroy95 4 года назад

    2:06 hahahaha

  • @__dev14
    @__dev14 2 года назад

    Poor depressed button 🤣

  • @justafreak15able
    @justafreak15able 5 лет назад +4

    LOL Depressed buttons

  • @olgoodman1701
    @olgoodman1701 4 года назад

    suicidal button 🤣