Create Custom Modal in React with Tailwind CSS | Modal in NextJS with Tailwind

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • In this tutorial, you'll learn how to create a custom modal or popup in react js with tailwind CSS. Here I have used next js with tailwindcss to create the modal.
    I have made total 3 modals, first one is a basic modal with text content in it, for the second one I have created video modal where you can display a RUclips video in the modal, and for the last one I have made a more complex HTML form with tailwind in the modal. So all the major contents which generally you need to add in a modal are covered in this tutorial.
    ⦿ eCommerce Website Design with Tailwind CSS Tutorial • Design Responsive eCom...
    ⦿ Login Page in Next JS with Tailwind CSS Tutorial • Create Login Page in N...
    ⦿ Sidebar Navigation Menu with Tailwind Tailwind CSS Tutorial • Sidebar Navigation Men...
    → Social App with Firebase in React Native Playlist • Social App with Fireba...
    → React navigation v5 tutorial playlist • React Navigation 5 Tut...
    → Food Finder App in React Native Playlist • Food Finder App in Rea...
    → Music App UI Tutorial • Music App UI in React ...
    ► Timestamps
    0:00 Introduction
    1:29 Create the NextJS Project with Tailwind CSS
    2:50 Create Main Page Layout
    4:20 Create Modal
    If you found my tutorials helpful, you can buy me a coffee from this link paypal.me/itzpradip
    Follow me on Twitter / itzpradip
    Follow me on GitHub github.com/itzpradip
    Subscribe to my Channel bit.ly/2PaUqOk
    For more tutorials on WordPress, React JS, React Native and Flutter visit: www.pradipdebnath.com/blog/

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

  • @lofiwaves2123
    @lofiwaves2123 11 месяцев назад

    Thanks buddy , been searching for this the whole time!!!

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

    Great tutorial! Thank you!

  • @Sniksax
    @Sniksax 6 месяцев назад

    Thank you so much brother, this tutorial is simple clear and easy to follow, keep up the good work !

  • @rijwanulhaqueroman3052
    @rijwanulhaqueroman3052 20 дней назад

    Thank you. It was very easy to understand. You explined everything clearly. Keep up the good work.

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

    Amazing, thank you!

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

    Thanks man!

  • @cecibenitez3917
    @cecibenitez3917 6 месяцев назад

    thank you Mister, very nice

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

    Nice ..make more react and tailwind please I'm learning it from u. Can you make random quiz using react and tailwind?

  • @m__link6499
    @m__link6499 5 месяцев назад

    Thank you sir… but what if I want to display a modal by using a map of an object, instead of hard coding the button like you did? Let’s imagine that you have a list of cards (object) and in each card , we have a button that must display a modal with a content of each card. How will we do please? I can’t find a video on you tube showing that…

  • @adminbay1526
    @adminbay1526 Год назад +2

    Dude I wanna ask u something. Can u show us If we want to add another components under that modal button...

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

    Thanks man! really helpful

  • @ranggadanendra7691
    @ranggadanendra7691 9 месяцев назад +2

    thank you so much sir, you are my super hero, now i can finish my job

  • @designerborhan3727
    @designerborhan3727 10 месяцев назад

    Thank you brother

  • @federicomarceloramirez6650
    @federicomarceloramirez6650 7 месяцев назад

    Thank you! that´s really help me. I salute you from Argentina.

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

    Thank you Boss 💖💖❤❤💖💖

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

    thanks a lot

  • @user-fn3cj2gk5j
    @user-fn3cj2gk5j Месяц назад

    thank you. i learn a lot.

  • @mostakahamed6169
    @mostakahamed6169 Месяц назад

    Good job. Easy explanation 🎉

    • @itzpradip
      @itzpradip  Месяц назад

      Glad it was helpful!

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

    sir i did same like you but when i click on screen my modal is not getting close

  • @HazratAlinil
    @HazratAlinil 7 месяцев назад

    Great

  • @craftsworld3237
    @craftsworld3237 3 месяца назад

    full scrren feature is not working in this modal how can i do it??

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

    Sir could you please make video on how to make expo react native app run on android smart TV.

  • @FrontendFanatic
    @FrontendFanatic 3 месяца назад

    Thanks

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

    দাদা context api in react native এ একটা ভিডিও আনলে খুব ভালো হয়। love from Behala

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

    Is this modal responsive?

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

    its working

  • @kKhubaibAlam
    @kKhubaibAlam 6 месяцев назад +1

    Can you provide this code ?

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

    how do you avoid scrolling if the page content is scrollable? I tried overflow-y-hidden but that results in jumping content on windows due the scrollbar is being removed!

    • @SrinivasaSridhar
      @SrinivasaSridhar 3 месяца назад

      in modal component use this
      useEffect(() => {
      document.body.style.overflow = "hidden";
      return() => {
      document.body.style.overflow = "unset";
      }
      },[isVisible]);

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

    Portals?

  • @arhabersham
    @arhabersham 8 месяцев назад +1

    Source code?

  • @roxxyyroy3404
    @roxxyyroy3404 Год назад +3

    But you repeated the code for creating three separate modal. You did not follow code reusability.we should create custom modal component and then then we can use that custom modal component on 3 different case based upon modal content.

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

      Yes, that's what I'm looking for for my project!! Do you know of any channels that do that?

  • @EswariA-uk9zy
    @EswariA-uk9zy Месяц назад

    Not at all clear explaination
    After u install when u create index.js app.js file

  • @droid-jr9940
    @droid-jr9940 11 месяцев назад

    Great tutorial! Thank you!

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

    Thanks alot

  • @ashas840
    @ashas840 14 дней назад

    Can you provide this code ?