Reusable Modals with Radix UI

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 36

  • @am8537
    @am8537 12 วันที่ผ่านมา

    fascinating job and very elegant solutions

  • @jackfairfield1109
    @jackfairfield1109 ปีที่แล้ว +2

    How you only have 23.5k subs is beyond me. This is fantastic. Thanks!

  • @igrb
    @igrb ปีที่แล้ว +14

    I love how when building abstractions like this with radix, if you replace "Modal" there with "Popover" it should just work™ given you expose the same API. Absolutelly love it!

  • @sonnguyenthanh6811
    @sonnguyenthanh6811 9 วันที่ผ่านมา

    Thank you so much sir!

  • @DEV_XO
    @DEV_XO ปีที่แล้ว +1

    Amazing mate! More Radix / Framer Motion tutorials please! We need them!

  • @Luxster89
    @Luxster89 ปีที่แล้ว +1

    Every time I watch one of your videos, I feel like I'm learning something new. Outstanding explanation and great presentation.

  • @robertgregg7028
    @robertgregg7028 ปีที่แล้ว

    1st video I have seen of yours. Such a great flow. Lighting. Camera angles. Effortless editing between showing the code/output/yourself.

  • @khairulhaaziq2332
    @khairulhaaziq2332 ปีที่แล้ว

    definitely need more radix contents sam!

  • @SeanCassiere
    @SeanCassiere ปีที่แล้ว +1

    Radix is just awesome! Been using it with shadcn/ui and its extensibility and customization is just awesome!

  • @meowmesh
    @meowmesh ปีที่แล้ว

    Damn i love this kind of series. Keep it comming. In last project i was kinda hating my modal because i made from scratch.

  • @rjtdas
    @rjtdas ปีที่แล้ว +4

    Damn! I was hardcoding all this just because of the button trigger, thanks for this helpful tutorial.
    Also, could you please create a video on shared element transition between two pages?
    One way i know is using layoutId from framer motion but i couldn't customize it
    Assume page 1 has 1 image on left side and 2 page has the same image but on the right side
    When navigated to page 2 from page one the image should slide to left
    Please create this video, there's no video on TH-cam about it, especially with NextJs 13.
    Again thanks this was a super cool video 👏 ❤

  • @converter
    @converter ปีที่แล้ว

    The thought process and simplicity of explanation is superb! Thanks for this wonderful effort to share

  • @alexanderkuznetsov634
    @alexanderkuznetsov634 ปีที่แล้ว +1

    Great, it looks like you almost have a content playlist - "Practical Next.js, Radix UI, Tailwind, Animation", or it's a future course on Buid UI =)). Thanks for sharing all that knowledge.

  • @Balance-8
    @Balance-8 ปีที่แล้ว

    Incredible!

  • @tshddx
    @tshddx ปีที่แล้ว +2

    That’s the level of quality of neckline trim that I aspire to but rarely achieve. Are you using a DE or a straight razor?

    • @samselikoff
      @samselikoff  ปีที่แล้ว +3

      😄 ty! Yep I use a safety razor, always found them to be the best

  • @rashzh5502
    @rashzh5502 ปีที่แล้ว +1

    Fantastic content!
    Would it be possible for you to create a tutorial covering the intricacies of designing components and the architecture of React applications?

  • @osman3404
    @osman3404 ปีที่แล้ว

    I wish we had content creators like Sam for Blazor ;)

    • @gnrsn9714
      @gnrsn9714 ปีที่แล้ว +1

      Why would you ever choose to use Blazor?

  • @rariber
    @rariber ปีที่แล้ว

    as always very helpful thx.

  • @mhddngs
    @mhddngs ปีที่แล้ว

    I see a new Sam video
    I click

  • @nick-ui
    @nick-ui ปีที่แล้ว

    The way to make exports like Modal.Button = Dialog.Trigger is really beautiful for eyes, no more a bucnh of imports from radix library mixed with own components.
    Btw I also saw this trick in shadcn ui library.

  • @VAMDigital
    @VAMDigital ปีที่แล้ว

    Hi Sam, I stumbled upon your content looking for RSC and found a whole bunch of awesome videos and content you have created so far. Your way of teaching is just absolutely amazing. Appreciate all your time and effort for bringing such a quality content. One question I had what vscode theme and font you are using.. Its really soothing to eyes and very readable distraction free.. Thank you

    • @samselikoff
      @samselikoff  10 หลายเดือนก่อน

      Thanks for the kind words! I use Dracula draculatheme.com

  • @alisic
    @alisic ปีที่แล้ว

    Great video as always! One question: do we need to forward the ref to the root of our new component in thia case?

    • @samselikoff
      @samselikoff  ปีที่แล้ว

      Yes you would to be fully compatible, but I usually wait until I see an error to add it as you often don't need it depending on what functionality you expose.

  • @Leralow
    @Leralow ปีที่แล้ว

    I'm having a problem scrolling my modal with mobile devices when the virtual keyboard appears. The problem is that the keyboard appears above the form and the scroll remains blocked. the scroll is only working if the size of my form in the center is initially larger than the screen size.

  • @LuisPerez-cb4rp
    @LuisPerez-cb4rp หลายเดือนก่อน

    Hey Sam, im struggling with a problem. Im using a radix dialog and inside im using long content but for some reason the dialog will not let me scroll. I used the ScrollArea but that only seems to work if you touch the custom scroll bar. you still cant scroll the screen, are there any work arounds?

  • @trekkergal460
    @trekkergal460 10 หลายเดือนก่อน

    Not sure why the modal does not close for me tried everything

  • @edgarasben
    @edgarasben ปีที่แล้ว

    But... Aren't we back to client side if the whole page is marked as "use client"? The component doesn't seem to work in RSC.

    • @samselikoff
      @samselikoff  ปีที่แล้ว +1

      The component itself would need to be a client component, you could add it at the top of modal.tsx. That way the page/layout itself could still be a RSC.

  • @j0hannes5
    @j0hannes5 ปีที่แล้ว

    where can I learn more about this Component.Subcomponent = ... pattern?

    • @samselikoff
      @samselikoff  ปีที่แล้ว +4

      It's really just property assignment, Component is a function but functions in JavaScript are also objects. So you can attach properties to them!

  • @jimshtepa5423
    @jimshtepa5423 ปีที่แล้ว

    what hapenned at 7:08?

    • @samselikoff
      @samselikoff  ปีที่แล้ว

      No edits - I just turned off word wrapping (⌥ + Z) so the code took up fewer vertical lines!

  • @psyferinc.3573
    @psyferinc.3573 หลายเดือนก่อน

    sanks