So the same Menu is copied and listed twice? Is there any way to make a menu list once and reuse it. This way if we make any change to the menu, we only have do do it at one place instead of two.
you can but you have to add complex css. If you want to only update it in one place, you can create a yaml or json file to hold the data in one place and loop through that whenever you need the links!
Question: How do you make the hamburger button disappear? I have what I believe is the same code as you (I don't use theme breakpoints though, I use the standard given breakpoints). When I click on the hamburger icon, it still remains, and everything else opens (including the close icon). And when I click the close icon, everything just opened closes. The display for the hamburger icon is set as "Flex" and not "display" which I believe would change it. If you or anyone knows the answer to this, that would be great to know!
I made a solution which was just to give the Hamburger Menu Button its own useState, and switch on it's own click and on the close icon click, so it's like this: const [display, changeDisplay] = useState("none"); const [hamDisplay, changeHamDisplay] = useState("flex"); { changeDisplay("flex"); changeHamDisplay("none"); }} /> {/* Mobile Content */}
{ changeDisplay("none"); changeHamDisplay("flex"); }} /> ... {remainder of code} But I am still curious about a solution that doesn't require two different useStates.
Hi Benjamin, when i click the hamburger icon i can only see a white screen, checked the code twice and its the same as yours. Do you know what could be the problem?
You´re amazing, I'm started to learn chakra ui and I've been dealing with this thing. Finally I could get it. Thanks man, I´m a new suscriber! 😎😎😎😎
Thankyou Benjamin Brother.
You are intelligent and explained every step so professionally.
thank you bro i was just wasting my time on youtube then finally i found this tutorial,
Thank you! It was very helpful !
Thanks the overflow property was what I was looking for
Very good video, thank you from brazil
Po, compartilha o código final ai mano kkk
Really helpful, thanks a bunch!
Thank you very much Bro. This was really helpful!!😊
Brilliant content. Much appreciated.
Thanks man, I learned a lot!
Top content. Excellent class.
Helped me a lot.
Thank you and success to you.
Glad it helped!
Thank you, Benjamin, this was very helpful. However, the nested flex was a little confusing
Apologies for that, the nested flex is to hold content together, think of it as a div (it is compiled to a div).
Thanks man. You are great
Thanks Benjamin ⚡🚀
So the same Menu is copied and listed twice? Is there any way to make a menu list once and reuse it. This way if we make any change to the menu, we only have do do it at one place instead of two.
you can but you have to add complex css. If you want to only update it in one place, you can create a yaml or json file to hold the data in one place and loop through that whenever you need the links!
Awesome! Thing is when you switch to dark mode everything stays white on the displayed menu
You can fix this by passing in your own colors! Use "useColorMode" hook or "useColorModeValue"!
Question: How do you make the hamburger button disappear? I have what I believe is the same code as you (I don't use theme breakpoints though, I use the standard given breakpoints). When I click on the hamburger icon, it still remains, and everything else opens (including the close icon). And when I click the close icon, everything just opened closes. The display for the hamburger icon is set as "Flex" and not "display" which I believe would change it. If you or anyone knows the answer to this, that would be great to know!
I made a solution which was just to give the Hamburger Menu Button its own useState, and switch on it's own click and on the close icon click, so it's like this:
const [display, changeDisplay] = useState("none");
const [hamDisplay, changeHamDisplay] = useState("flex");
{
changeDisplay("flex");
changeHamDisplay("none");
}}
/>
{/* Mobile Content */}
{
changeDisplay("none");
changeHamDisplay("flex");
}}
/>
... {remainder of code}
But I am still curious about a solution that doesn't require two different useStates.
Hi Benjamin, when i click the hamburger icon i can only see a white screen, checked the code twice and its the same as yours. Do you know what could be the problem?
Can create a video showing how to create a dashboard with sidebar?
Do you have a specific design in mind?
@@BenjaminCarlson instagram.com/p/CO0JeUVjAdg/?
Hey, would you happen to have the completeed code somwhere?
unfortunately I don't have this code but almost all of the code for my videos can be found on my GitHub
@@BenjaminCarlson alright .... thank you
good content
thanks
Niiice
thank you so much, next time please don't make your browser cropped