Тёмный

Building a Custom Dropdown Menu with Headless UI React and Tailwind CSS 

Tailwind Labs
Подписаться 95 тыс.
Просмотров 85 тыс.
50% 1

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

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 118   
@maurogarcia2012
@maurogarcia2012 3 года назад
The attention to detail on Headless UI is remarkable. Congrats to the TailwindLabs team!
3 года назад
I love your seamless style of explaining, great screencast! Headless UI is 😍
@adammenczykowski
@adammenczykowski 3 года назад
You did a great job of stepping through the implementation. Love this library! As a Vue only developer seeing React syntax made me laugh / gasp at points!
@simonswiss
@simonswiss 3 года назад
Thanks! Haha I hear you - having gasps looking at the Vue 3 syntax for a future Headless UI video 🤣 Spoiler: they're both great libraries, but switching from one to the other is definitely challenging 😅
@bobarndt862
@bobarndt862 3 года назад
@@simonswiss If Tailwind is a big supporter of Vue and vice-versa, why do these videos always use the mess that is React?
@AlejandroVivas
@AlejandroVivas 3 года назад
Every time I realize you upload a video, I know I will learn something very important for me. Thank you, always.
@ulvidamirli2758
@ulvidamirli2758 3 года назад
I love Tailwind and everything related to it. I think we need Svelte support as well in Headless UI.
@iamdavidwparker
@iamdavidwparker 3 года назад
Sorta? The thing about Svelte is that a lot of this stuff is already built in (transitions, for example).
@deephousefridays1911
@deephousefridays1911 3 года назад
totally agree. Would love to see this happen!
@Svish_
@Svish_ 3 года назад
Any chance of getting walkthroughs like this for the other components of headless ui as well? 🙏
@TailwindLabs
@TailwindLabs 3 года назад
Sure thing, we're working on a few other videos ✨
@mustafwm
@mustafwm 3 года назад
Transition comes with sound effect! Cool
@TailwindLabs
@TailwindLabs 3 года назад
Haha, transitions always need a sound effect 🎉
@aram5642
@aram5642 3 года назад
Love that you pay attention to these a11y issues. Much less do I like react and the markup
@_lkbr
@_lkbr 3 года назад
Nested ternaries 😱
@simonswiss
@simonswiss 3 года назад
Haha, did you like the sound effects? 😅
@JimOHalloran
@JimOHalloran 3 года назад
I picked up the pre-release version of Headless UI and used it to provide the implementation for one of Tailwind UI's custom selects a couple of weeks ago. I'm using Vue3 and everything "just worked". When you look at the number of components required to implement a "simple" select it looks a bit overwhelming, but the control you get is pretty cool. As you'd expect (since it all comes from the same people) it mapped really easily onto the Tailwind UI sample and made everything really easily (this was about a week before Tailwind UI started publishing code samples in Vue with Headless UI). This is really amazing work, congrats to the entire team, Tailwind CSS + Tailwind UI + Headless UI has been a total game changer for me.
@nubl37
@nubl37 3 года назад
Kent C Dodds deserves a lot of credit for popularising this api design with downshift
@skylerdjy
@skylerdjy 2 года назад
me watching these tutorials every time they pop up on my feed just because of his energy 👁👄👁
@tusharpatel588
@tusharpatel588 3 года назад
Love the work by Tailwind Team. Keep posting such awesome content.
@adamtak3128
@adamtak3128 3 года назад
Awesome job once again Simon!
@TailwindLabs
@TailwindLabs 3 года назад
Thank you! 🙏
@iamdavidwparker
@iamdavidwparker 3 года назад
This is pretty cool, for React/Vue folks. As a Svelte person, I think some of it would be nice (aria, etc), but the things like transitions aren't needed (svelte already can do all that easily).
@johnnybravohonk6964
@johnnybravohonk6964 2 года назад
I've literally used it today to get a nice looking (dark) dropdown and it worked great (although took 2 hours to understand and integrate).
@technikhil314
@technikhil314 3 года назад
This is awesome. I always like to have controls of styles. I feel this with framer motion will be killer combination.
@techrun262
@techrun262 2 года назад
wooow, Just a single Component needs 700 Lines of CSS Code! Awesome!!
@jimbosupernova
@jimbosupernova 2 года назад
I don't get why people hate on tailwind so much. This stuff is awesome!
@KeithGraves
@KeithGraves 3 года назад
This is great. I would love to see a component, similar to this, as a drop down for auto complete suggestions for a search box.
@pooyatolideh9527
@pooyatolideh9527 3 года назад
Downshift is great if you're looking for autocomplete/search/etc
@jv18creator
@jv18creator 3 года назад
no dislikes. world is changing 💖
@gabriellinassi3382
@gabriellinassi3382 3 года назад
you're funny dude. Thanks! I'm learning a LOT with you
@bamboooholic
@bamboooholic 3 года назад
Svelte support would be dope for headless UI!
@MrSonicastra
@MrSonicastra 3 года назад
Thanks for the video, SImon!
@TailwindLabs
@TailwindLabs 3 года назад
No problem - glad you enjoyed it 👍
@benthomson2406
@benthomson2406 2 года назад
Great framework
@davidjforer
@davidjforer 3 года назад
is there a github for this? I would love to see the code! Thanks and great tutorial.
@himanshusrivastava931
@himanshusrivastava931 3 года назад
Anybody have an idea which 'Preview' extension is he using in VS code? 🤔
@rfmiotto
@rfmiotto 3 года назад
Tailwind Labs videos: first you like it, then you watch it
@antoniocarlosdasilva7693
@antoniocarlosdasilva7693 3 года назад
I think we need Svelte - Angular - Vue - Laravel support as well in Headless UI.
@aurelianspodarec2629
@aurelianspodarec2629 2 года назад
You mean Vanilla JS when you say Laravel :D
@michaelczolko6093
@michaelczolko6093 3 года назад
Well done!
@JKhalaf
@JKhalaf 3 года назад
Elm support for Headless UI would be awesome.
@pascalwesolek
@pascalwesolek Год назад
Great stuff! What is best practice for choosing between Menu, Popover or Disclosure? In which case to choose what?
@abdulhonifadilah5853
@abdulhonifadilah5853 3 года назад
i love tailwind css and i like your cup 😁
@harvanchik
@harvanchik 3 года назад
Great stuff! Looking forward to Angular support in the future!
@fboogaard5056
@fboogaard5056 3 года назад
Thnx a lot, keep up the good work!
@shafu_xyz
@shafu_xyz 3 года назад
I had few issue with Menu comp. headless/react its difficult to control event propagation from Menu.Button when used inside tag, thereby causing a click event on tag, any idea for a work around?
@IgorLjevak
@IgorLjevak 2 года назад
is it possible to disable the spacebar from opening and closing the button? we have a text field in the dropdown that closes the dropdown when typing space
@raiyansarker1698
@raiyansarker1698 3 года назад
Is it possible to do the same with both click and hover event? I tried using group and group hover, but when the button is not clicked. the component is not even in the DOM. Is there any way? Let me know!
@jaza7613
@jaza7613 2 года назад
Thank you for this video
@dvikauglaumishrauca
@dvikauglaumishrauca 3 года назад
Beautiful
@cas4425
@cas4425 3 года назад
Great video 👍🏻
@vesper8
@vesper8 3 года назад
Really looking forward to a Vue-2 compatible version of HeadlessUI
@dennyh66
@dennyh66 3 года назад
Looking good! Does it play well with styled components?
@shourovroy-sanatani
@shourovroy-sanatani 3 года назад
I am facing problem with tailwindcss. In my development server everything is okay. but in build file and after running the build file some designs are not working.
@ricardo-emerson
@ricardo-emerson 3 года назад
Awesome!! Thanks a lot!
@magnusandersson2495
@magnusandersson2495 3 года назад
Very nice!
@ervinismu6265
@ervinismu6265 3 года назад
Great video
@marimuthur9456
@marimuthur9456 2 года назад
Thank you so much it's very quick trick to achieve the popup behaviours could you tell me can I install headless ui in my project is there having any disadvantages.?
@psybitcoin
@psybitcoin 3 года назад
More of these please
@balajihambeere4800
@balajihambeere4800 Год назад
Can we provide aria-labelledby and id from headlessui-menu-button-1 to some custom name?
@naseerahmed5682
@naseerahmed5682 2 года назад
Thanks for this
@neelabhdutta6691
@neelabhdutta6691 2 года назад
this is amazing, but is there any change that this menu would work like React Spectrum's in phones, that it would show the list on a tray from the bottom of the phone's screen, also a searchable select , i know its a lot of request but I have no idea how can I go about building it
@ShajidHasan
@ShajidHasan 3 года назад
Need headless UI for other libraries as well. Especially Svelte.
@criszamarco2186
@criszamarco2186 3 года назад
finally....thanks a lot!
@halftome
@halftome 2 года назад
love the Headless UI. Any plans to support Svelte/SvelteKit ?
@richardhoyle7778
@richardhoyle7778 2 года назад
The video is Grate: NOW how can I us it in Laravel 8 with php 8 Trying to follow along but have more questions the answers. Can Some One Please Help ? I installed the headless UI but now how can I set it up to use in the menu or side menu bar I am trying to create?
@martinszeltins2045
@martinszeltins2045 2 года назад
Wish there was a Vue version of this
@MrCrsistian
@MrCrsistian 2 года назад
Thx so mucho bro!
@geoyaacoub
@geoyaacoub 3 года назад
Thx for the great video! Question: How can I enable stopPropagation? right now the menu doesn't toggle, because of a parent onclick action
@jsdepth
@jsdepth 3 года назад
You are love ❤️
@forsh2966
@forsh2966 3 года назад
good video, good memes, perfect video :D
@TailwindLabs
@TailwindLabs 3 года назад
Haha thanks!
@orpheusohms
@orpheusohms 3 года назад
Why is heroIcons and headless UI not available for Vue 2 ?
@jayreyes828
@jayreyes828 3 года назад
Great video. Can this work with a search box?
@GavHern
@GavHern 3 года назад
absolute game changer! is there support for sveltejs?
@TailwindLabs
@TailwindLabs 3 года назад
Not yet - currently only React & Vue. We'll explore some more front end frameworks/libraries in the future!
@wadday
@wadday 3 года назад
is it possible to toggle on mouse over menu button? (hover)
@oussamasethoum2755
@oussamasethoum2755 3 года назад
I love the the idea of headless UI can you please add data table to the project ? headless data table ^^
@alexcroox
@alexcroox 3 года назад
What if the button is on the left or near the bottom of the screen before scrolling? Won't the menu be hidden/overflowing?
@nathanheffley
@nathanheffley 3 года назад
The Headless UI components don't come with any styling. The menu isn't even positioned absolutely by default. The only thing it provides is accessibility controls, anything related to the positioning or design of the menu is completely up to how you style it. This was just an example of one way you could style the menu.
@nadeemshareef7508
@nadeemshareef7508 3 года назад
Hello all, happy coding I wanna ask some questions is it free to use? or we have to buy like tailwindui? and Where can I find the source code for this video? thanks
@skiessurf5017
@skiessurf5017 2 года назад
Any chance of a link to the document/website used on 1:30?
@erikswanson3441
@erikswanson3441 9 дней назад
i really want to know how to do this withoiut frameworks and simply tailwind and vanilla javascript.
@ikan5677
@ikan5677 3 года назад
Is there any vue version of this drop down tutorial
@alii4334
@alii4334 3 года назад
how did you show the keystrokes on the screen?
@TailwindLabs
@TailwindLabs 3 года назад
I used something called keyCastr (on Mac) for this 👍
@nishitsarvaiya1474
@nishitsarvaiya1474 2 года назад
What is the Font you're using in editor?
@hardwired66
@hardwired66 3 года назад
your error console is so cool, what is the name of that plugins sir?
@linusang
@linusang 3 года назад
is it possible to incorporate PopperJS positioning?
@Grahfx
@Grahfx 3 года назад
how can I manually manage when the menu close ?
@volkan5674
@volkan5674 3 года назад
is there any repo for this beauty?
@ruslansteiger
@ruslansteiger 3 года назад
😍
@erfansadeghinezhad9780
@erfansadeghinezhad9780 3 года назад
so i have a crazy question what's your vscode font ?
@Kiliman3970
@Kiliman3970 3 года назад
I believe it's Dank Mono
@simonswiss
@simonswiss 3 года назад
Dank Mono!
@koukiadem
@koukiadem 3 года назад
Keep up the good work ! waiting for Angular support
@bizmich_
@bizmich_ Год назад
how to open menu items under condition?
@mohamedyoussef8835
@mohamedyoussef8835 2 года назад
Awesome Video +++++++++++++++++++++++++++++++++ 😃
@dagoacarralero5080
@dagoacarralero5080 3 года назад
It will be super nice if was a repo for the tutorial
@r4ndsen
@r4ndsen Год назад
it‘s called monospaced. use it.
@abdulmaliqshola7239
@abdulmaliqshola7239 3 года назад
can the source code made available?
@innovafrique
@innovafrique 3 года назад
Can you please do the same in nuxtjs???
@farhamsj8217
@farhamsj8217 3 года назад
nice ! now do it with vue , i dont like react :D
@YouYou-gh8tx
@YouYou-gh8tx 2 года назад
No love for Angular ? 😕
@mayurravindra9433
@mayurravindra9433 3 года назад
Sleek👌🏻
@techie607
@techie607 3 года назад
which extension you use in vs code ??
@rubinbajracharya9319
@rubinbajracharya9319 3 года назад
Actually it is Live Frame found in VSCode Market Place
@techie607
@techie607 3 года назад
@Robert Ntim Thanks I will check this out
@techie607
@techie607 3 года назад
@@rubinbajracharya9319 Thanks ,I will check this as well
@schamanperenok5637
@schamanperenok5637 3 года назад
where is link of sources ?
@Troy-ol5fk
@Troy-ol5fk 2 года назад
please make a svelte version of headless ui
@Balance-8
@Balance-8 3 года назад
do more!
@ashwinbabu007
@ashwinbabu007 3 года назад
please share the github of these tutorials
@JohnoScott
@JohnoScott 2 года назад
My DRY nose smells bad code here. Why didn't you finish with consolidating all that repeated code into an array.each() with the item icon,name and disabled state ? The way it is it would be a nightmare to maintain.
@truthteachers
@truthteachers 2 года назад
Honestly, we are totally disappointed by the product from Tailwind Labs. Its really hopeless and confused a lot of things we have learnt. I think you guys just wasted your time. Look at the code for dropdown. It has a number of vue component imports and none of these are provided. The whole thing looks so silly and incomplete. I love Tailwindcss but this one is really a disappointment. Looks like a rush job.
Далее
Translating a Custom Design System to Tailwind CSS
10:10
JUJU HAS IT ALL! | Brawl Stars Animation
00:53
Просмотров 2,6 млн
I WISH I Knew These Tailwind Tips Earlier
9:15
Просмотров 193 тыс.
This UI component library is mind-blowing
8:23
Просмотров 701 тыс.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Просмотров 191 тыс.
7 ways to deal with CSS
6:23
Просмотров 1,1 млн
10 CSS PRO Tips and Tricks you NEED to know
9:00
Просмотров 80 тыс.
JUJU HAS IT ALL! | Brawl Stars Animation
00:53
Просмотров 2,6 млн