Тёмный

Styling a Radix Dialog with Tailwind CSS 

Sam Selikoff
Подписаться 71 тыс.
Просмотров 37 тыс.
50% 1

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 78   
@jimshtepa5423
@jimshtepa5423 Год назад
Thank you for this quick overview. I hope your partnership with workos lasts long enough to covere 80-90% of the primitives😁
@EnesKab
@EnesKab 5 месяцев назад
This is my first time here, and just exploring radix. These tutorials are rare find. So right into the point, super clear and easy to follow in a very right pace. Thank you Sam.
@rapid-ruby
@rapid-ruby Год назад
Wow, Radix looks like an awesome library, really cool that it doesn't inject any styles as well! Thanks for sharing!
@subeg
@subeg Год назад
You are VS Code shortcut wizard. Can you do a video on VS Code shortcuts and snippets?
@nayana622
@nayana622 Месяц назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qIHR2wmxy3U.html
@timothyn4699
@timothyn4699 11 месяцев назад
wow, I've messed just a tiny bit with radix-ui but you're helping really drive the value/purpose of it I admire your UI skills, it's my kryptonite atm, but you make it looks so easy! The step by step approach makes it look more manageable. Thanks for the share!
@timothyn4699
@timothyn4699 11 месяцев назад
hmm, I think it's the combination with tailwind.css which is a real winning combination, bc then you can very, very easily modify the CSS and see immediate changes, versus I'm used to manually typing the CSS in the style, inline as a json obj. Albeit your experience with the specific radix components makes it look easy. I'm looking forward to trying this new approach sometime though to test my theory
@ebratz
@ebratz Год назад
great Radix content! Thank you so much for producing such high quality content for free!
@AhmadAwais
@AhmadAwais Год назад
What a fantastic video, Sam. I kept hoping you would touch on the dialog title part which is not always obvious as it has a11y utility. Thank you! 🙌
@pheisar
@pheisar Год назад
Another great video! You are killing it! Thanks!
@chrismixlist
@chrismixlist Год назад
Always providing high quality and informative videos. Keep up the great work
@user-pl7vz9pd1z
@user-pl7vz9pd1z 9 месяцев назад
Excellent work! Tutorial pace is right on the money and design is simple but elegant.
@xberna8156
@xberna8156 Год назад
these types of videos are very helpful! thx
@AlexanderBogdanov-dw6cw
@AlexanderBogdanov-dw6cw 4 месяца назад
огромное спасибо Вам!
@azazahamed
@azazahamed Год назад
Such a great overview about Radix and their dialog component! Instant sub!
@EvertJunior
@EvertJunior Год назад
You really are the best. Thank you for another excellent video.
@angstrom1058
@angstrom1058 3 месяца назад
10 lines of code, but you have to know what 10 lines. It always pays to know what you are doing. Thanks for this!
@nonchain
@nonchain 11 месяцев назад
This is awesome. I can even create my own Design System
@alejandrobanderas3577
@alejandrobanderas3577 4 месяца назад
Thank you! You are making some really good content!
@AlexanderBogdanov-dw6cw
@AlexanderBogdanov-dw6cw 4 месяца назад
Огромное спасибо. Круто
@IkraamDev
@IkraamDev Год назад
Thanks for this video. Make a fun video about shadcn/ui, it uses Radix too.
@markokraljevic1590
@markokraljevic1590 6 месяцев назад
excellent really, i see how well you prepared entire presentation
@maskman4821
@maskman4821 11 месяцев назад
This is so practical and useful, thank you for the tutorial 🙏
@coder-twadd
@coder-twadd Год назад
This is fire btw. Thanks for this video!
@testvb6417
@testvb6417 Год назад
i loved it
@cecece775
@cecece775 Год назад
A real thank you, i've learned a lot in only 10 minutes
@tye7313
@tye7313 9 месяцев назад
Man that's sooooo clean.
@AliMukhtar53
@AliMukhtar53 Год назад
Hey Sam! Need that surround with snippet/shortcut 😬 0:55
@hbela1000
@hbela1000 Год назад
high quality vid as always,thx.
@joestrkr
@joestrkr Год назад
Really looking forward to part 3 😁
@tech3425
@tech3425 10 месяцев назад
Always a joy
Год назад
Such a professional video. Subscribed immediately.
@aayushpatil7514
@aayushpatil7514 Год назад
Fantastic video, keep it up!!
@PsychoGod9898
@PsychoGod9898 Год назад
Really cool! Would be great to see on how to refactor this into a more reusable component
@w3mw
@w3mw Год назад
Amazing, love your videos, one of my favorite channel! 😃
@eleah2665
@eleah2665 Год назад
Cool. Thanks.
@sithumdasantha3147
@sithumdasantha3147 Год назад
Thanks for the video 🤟
@theweekendcoder
@theweekendcoder Год назад
Great video as always. calm and clean
@michaeldeane4807
@michaeldeane4807 Год назад
So nice and easy. Awesome video.
@invinciblemode
@invinciblemode Год назад
Great content as always!
@yuxiang4218
@yuxiang4218 11 месяцев назад
Great content!
@prashank
@prashank Год назад
Really missing out these cool things in Vue land.
@raymondmichael4987
@raymondmichael4987 Год назад
Tempting to replay this several times
@PlooxTook
@PlooxTook Год назад
I've never used react portals so i'm wondering, for dialogs, is there any benefits of using it over a element ?
@coder-twadd
@coder-twadd Год назад
I would pay money to have videos on using each of the radix components
@filipesommer8253
@filipesommer8253 Год назад
Question: Shouldn't the Dialog.Root be written outside the users.map() function, for performance reasons? Source: My intuition haha
@juj1988
@juj1988 Год назад
Good content....
@agustinpa7374
@agustinpa7374 Год назад
niceee
@oOserkanCakmakOo
@oOserkanCakmakOo Год назад
Thats so cool thank you for sharing valuable informations can I ask favour please can we have more videos with next js 13.4 make a app with server side actions etc
@yourvideosareshitbutiwatch4492
got yourself a new subscriber. Thanks for the video
@codenameunknown3791
@codenameunknown3791 Год назад
Hey Sam, awesome tutorial as always! One question tho: would you recommend using this Dialog approach in creating Hamburger menu navigation for mobile phones. I want the same dialog functionality, but i am concerned about a11y aspect (role="dialog" for example etc.) What would be your approach, or what primitive would you use in that case?
@shriprasanna3918
@shriprasanna3918 Год назад
what is the shortcut to wrap the html tag
@christianalares
@christianalares Год назад
Cool! Two questions: How would you abstract this in the best way? The close button and the title will probably always be rendered. And how would you animate these? Render them static and let framer motion do the job with controlled state?
@samselikoff
@samselikoff Год назад
Both questions will be answered in the series! tl;dr you can use Framer Motion but I'll be showing off CSS animations (Ep. 2). In Ep. 3 we'll cover reusability 👍
@ramsayromero8495
@ramsayromero8495 Год назад
@@samselikoff Just came here to ask the same two questions! Can't wait for part 2 and 3!
@subhranshudas8862
@subhranshudas8862 Год назад
Hi Sam, great content. Do you have any courses for RadixUI + TailwindCSS?
@jimshtepa5423
@jimshtepa5423 Год назад
why need to use max-w-md and w-full together? what effect does it offer?
@LucaMatteis
@LucaMatteis Год назад
Given the cool new features like intercept and parallel routes of Next 13, wouldn't you use those to create the interactions for a dialog instead of Radix?
@razz5841
@razz5841 Год назад
Is it fine that the Dialog is rendered many times for every item in array?
@samselikoff
@samselikoff Год назад
Yes! The actual dialog contents (in the portal) is only rendered once for the selected card. Being able to render each Trigger component locally directly inside the loop is actually one of the benefits of the way Radix component are structured 👍
@rockNbrain
@rockNbrain Год назад
Great job Sam ... tks a lot ... just one question, would this work without use client directive ?
@samselikoff
@samselikoff Год назад
In a non-Next.js app yes, in a Next.js app I would turn the button into a client component that also handles the modal (because the modal is a client-side interactive feature). I think I will make a video on this refactoring once I wrap this series!
@MikeRost-ly7pn
@MikeRost-ly7pn 11 месяцев назад
Honestly feels like a lot of custom work styling and setting things up to just get a normal modal. Is the there no "out-of-the-box" solution?
@thibautdurand9537
@thibautdurand9537 Год назад
Great video, really nice DX. I wonder the cost of having a dialog for each item instead a global one. Is it optimized by radix/react portal ?
11 месяцев назад
its normal to every line has your dialog? or create a dialog that everyline calls to use ?
@GGGGGGGGGG96
@GGGGGGGGGG96 11 месяцев назад
What is the difference between tailwind-css and just writing inline-css?
@kuba0799
@kuba0799 Год назад
What vscode theme do you use?
@converter
@converter Год назад
Is it not a bad practise to have a Dialog instance for each user object instead of just one Dialog for any user object?
@samselikoff
@samselikoff Год назад
Not bad at all, because the Dialog.Content is rendered in a React Portal, and has no output whenever the dialog is closed. So there's only ever one dialog rendered when a card is selected. Being able to render each Trigger component locally directly inside the loop is actually one of the benefits of Radix's API 👍
@helehelehele
@helehelehele Год назад
Is there a reason you prefer RadixUI over HeadlessUI?
@kH-ul4hk
@kH-ul4hk Год назад
the can't scroll feature of the Radix Dialog is nice, but on operating systems like windows it makes the scrollbar in the browser disappear, and thus causing layout shift. Is there an easy fix for this problem?
@invinciblemode
@invinciblemode Год назад
Add overflow-y-scroll to force the scrollbar to always appear?
@rand0mtv660
@rand0mtv660 Год назад
I think in the past libraries like Bootstrap would handle that by applying some padding to body when a modal is open. Let's say scrollbar is 10px wide, when a modal is open you would add a class to body and then add 10px padding when that class is present and that would prevent the content from jumping because same area would be taken in place of scrollbar. Not sure if they still do it that way, but I do remember it as an ok trick to handle that. Also, I'm looking at Radix UI Dialog documentation on Windows now and I don't see layout shifting when opening the Dialog. Maybe they handle that already for you?
@whoman7930
@whoman7930 Год назад
How's this better than headless-ui?
@samselikoff
@samselikoff Год назад
Radix has several more components. Headless is great but just not quite as full featured. I reach for Radix these days 👍 Headless still well supported and a great choice though!
@RedVelocityTV
@RedVelocityTV Год назад
Can the dialog be animated in and out?!
@samselikoff
@samselikoff Год назад
It sure can, we're covering that in the next episode!
@duytdl
@duytdl 6 месяцев назад
I'll be honest, this is why Radix/Tailwind isn't for me. 3 wrappers and all of CSS in one line... I know we've switched the definition of "separation of concerns" from separating HTML-CSS-JS to just components (having their own HTML/CSS/JS all mixed up in this monstrosity), but this just gives me the foulest of code smells. I'll wait till we come up with something better. Great video though!
Далее
Dismissing a Radix Dialog after a form submission
18:45
Avoid premature abstraction with Unstyled Components
17:23
cn() - Every Tailwind Coder Needs It (clsx + twMerge)
7:46
Translating a Custom Design System to Tailwind CSS
10:10
Radix Themes: Awesome New Components For NextJS
23:46
The GOAT of React UI Libraries
19:48
Просмотров 52 тыс.
Why is Radix Themes Built This Way - A Solution
7:12
Reusable Modals with Radix UI
14:31
Просмотров 20 тыс.
Tailwind-Merge Is Incredibly Useful - And Here's Why!
12:58