Building a Responsive Navbar with TailwindCSS & Alpine.js [TUTORIAL]

  Рет қаралды 17,506

David Grzyb

David Grzyb

Күн бұрын

Пікірлер: 24
@markbarton
@markbarton 4 жыл бұрын
Really clear explanation David. Describing what the tailwind classes do and why you are adding them is very helpful.
@MrWeedzor
@MrWeedzor 2 жыл бұрын
David, thank you so much for this tutorial. I've just started using Alpine and I was struggling to figure out a way to display the navigation on desktop, but hide it by default on mobile, without duplicating content. Your method worked like a charm.
@abhishekmalik8210
@abhishekmalik8210 4 жыл бұрын
Hey David, Nice example. Another useful addition would be to add `@click.away="isOpen=false"` along with ``:class="isOpen ? 'show' : 'hidden'" on the parent div of menu. Now you can set `@click="isOpen = true"` on the button. This ensures the menu closes if anything outside the menu area is clicked (including the menu toggle button) :)
@DavidGrzyb
@DavidGrzyb 4 жыл бұрын
Nice! Thanks for the tip :)
@stevenelson43
@stevenelson43 4 жыл бұрын
Thank you for this! I haven’t found many demonstrations on how to make alpine.js responsive. I found references to x-cloak, but your class binding approach should do what I need. Just in time, too!
@DavidGrzyb
@DavidGrzyb 4 жыл бұрын
You are welcome! There a couple of different ways to make responsive UIs work with Alpine and this one is my go to!
@stevenelson43
@stevenelson43 4 жыл бұрын
@@DavidGrzyb I'm still trying to figure out how all of this works. My concern - correct me if I'm wrong - is that the default alpine.js show/hide approach evidently applies a display:none class to hide DOM elements. Is this not an accessibility concern for something as critical as a menu? That's why your "hidden" class approach appealed to me, but hidden has its own potential issues… So tricky to discern an approach that is both robust and accessible, especially when I'm also trying to parse Tailwind syntax in my head as I look at your markup. Thanks for your reply and your example.
@wobsoriano
@wobsoriano 4 жыл бұрын
this is great. hope your channel grows big!
@khatabwedaa8929
@khatabwedaa8929 4 жыл бұрын
Thanks for using Meraki UI appreciate that 🤝✨.
@DavidGrzyb
@DavidGrzyb 4 жыл бұрын
Thanks for the awesome UI kit, I've been showing it to anyone who is looking for some components for their projects!
@jafajarvis324
@jafajarvis324 3 жыл бұрын
its working fine when i am using @click inside x-show div .. if i set show to out of x-show div it does nothing.. how to make it work
@twodimensions459
@twodimensions459 3 жыл бұрын
amazing tutorial .. hoping to see more in tailwind
@filament02
@filament02 3 жыл бұрын
hey i use this tutorial to create the navabar of my website and its was working but now the breakpoint does'nt seem to work and i don't know why flex md:hidden no longer work
@holicgamingph8876
@holicgamingph8876 3 жыл бұрын
Hi David, I am having a problem with the Alpine js. When I typed in the "@click="isOpen = !isOpen" the text all went red right after the @click. And the nav items are not showing anymore. Please help
@dadinhoschannel4003
@dadinhoschannel4003 4 жыл бұрын
Pretty nice video. Congrats
@sunrisepicturesent6615
@sunrisepicturesent6615 4 жыл бұрын
Thanks for this helpful tip David
@relaxwithnetia5409
@relaxwithnetia5409 4 жыл бұрын
Kindly create a ecommerce website with tailwind and laravel. Simple clear explanations appreciated though. Kudos
@flashbangstudio9102
@flashbangstudio9102 3 жыл бұрын
simple, basic, verry usefull, thank you
@muhammadabdi4996
@muhammadabdi4996 4 жыл бұрын
Thanks for the great tutorial
@Krlos5605
@Krlos5605 3 жыл бұрын
Great Tutorial, can you do a tutorial for a megamenu?
@warpig2786
@warpig2786 3 жыл бұрын
I enjoyed this video.
@DavidGrzyb
@DavidGrzyb 3 жыл бұрын
Glad you enjoyed it
@fikrifauzi8152
@fikrifauzi8152 3 жыл бұрын
Thank you very much
@valirjonathan2161
@valirjonathan2161 4 жыл бұрын
Subscribed.
Responsive Side Navigation with Tailwind CSS and Alpine JS
25:39
Building a Fancy Responsive Tile Grid with Tailwind CSS
13:28
Tailwind Labs
Рет қаралды 76 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Styling Forms with Tailwind CSS
17:25
Tailwind Labs
Рет қаралды 144 М.
Electron vs Tauri: This Was Unexpected!!
9:41
DashCruft
Рет қаралды 45 М.
Say No To Complexity With AlpineJS - Caleb Porzio
32:04
JavaScript Conferences by GitNation
Рет қаралды 18 М.
Build responsive nav menu with Tailwind + Alpine
10:46
codingoblin
Рет қаралды 1 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 74 М.
Alpine.js Crash Course (better than react)
19:33
Austin Shelby
Рет қаралды 8 М.
Building a Hero Section with TailwindCSS [TUTORIAL]
4:39
David Grzyb
Рет қаралды 2,8 М.
Intro to Alpine.js in Just 7 Minutes
7:33
Laravel Daily
Рет қаралды 50 М.