React Sidebar with Dropdown Menu Tutorial - Create Sub Navigation

React Sidebar with Dropdown Menu Tutorial - Create Sub Navigation

Brian Design

3 года назад

196,166 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@jeyanthan360
@jeyanthan360 - 01.09.2023 01:14

Thank You So much

Ответить
@KorhalKk
@KorhalKk - 30.08.2023 22:33

I'd create an "active" and "inactive" style and just change with a template string and short circuiting. So whenever you click the button it changes the style, without referring directly to 0% or 100%. It gives more control when you're trying to style it on a CSS. But thats just me, I've learned your way and its nice although I feel like I can get lost on my own code. Maybe its my coding ocd.

Ответить
@vasudevg1165
@vasudevg1165 - 18.03.2023 15:49

Thanks for the great video! I did this just today - happened to auto'ly import the latest version of react-router-dom. The Switch made me run around for a while as I wasn't expecting something as key as that might get moved-out/deprecated. Anyone who may face this issue, please use Routes instead of Switch.

Ответить
@mohamedyoussef8835
@mohamedyoussef8835 - 06.03.2023 00:04

Awesome video +++++++++++++++++ 🙂

Ответить
@arthur84350
@arthur84350 - 27.02.2023 16:59

how do i change the position of the icon. the icons are above the label

Ответить
@nandopookey9195
@nandopookey9195 - 21.01.2023 17:07

Thank you

Ответить
@LInfotechSolutions
@LInfotechSolutions - 21.01.2023 14:09

Nice tutorial. Really helped me a lot. Thanks. Is there a way to display sub-menus in deeper levels, I mean, an item having sub-menu which itself is a sub-menu. This can go to may be 3-4 levels. You are showing only two levels - main menu and sub-menu. Appreciate your quick reply.

Benny

Ответить
@saddamviera2596
@saddamviera2596 - 31.10.2022 04:10

import './App.css';
import Sidebar from './components/Sidebar';
import { BrowserRouter as Router, Routes , Route} from 'react-router-dom'
import Overview from './pages/Overview';
import { Reports, ReportsOne, ReportsTwo, ReportsThree } from './pages/Reports';
import Team from './pages/Team';


function App() {
return (
<Router>
<Sidebar />
<Routes >
<Route path='/overview' element={<Overview/>} exact/>
<Route path='/reports' element={<Reports/>} exact/>
<Route path='/reports/reports1' element={<ReportsOne/>} exact/>
<Route path='/reports/reports2' element={<ReportsTwo/>} exact/>
<Route path='/reports/reports3' element={<ReportsThree/>} exact/>
<Route path='/team' element={<Team/>} exact />
</Routes >
</Router>

);
}

export default App;

Ответить
@yannid5456
@yannid5456 - 19.10.2022 14:39

import * as , result to importing the whole package including file you will not use. This add extra not needed storage, besto import lelements used . e,g import {AIFillHome} from 'react-icon/ai'

Ответить
@prajeetkumarthakurbschonsi1883
@prajeetkumarthakurbschonsi1883 - 14.09.2022 09:57

Use path: '#0' for the links that you want to open the drop down and not route to any page

Ответить
@GUDDUKUMAR-iq5fz
@GUDDUKUMAR-iq5fz - 06.09.2022 09:03

Hi, Can you share this Github Link

Ответить
@oscarrenevierarodriguez2327
@oscarrenevierarodriguez2327 - 21.08.2022 17:00

Excelent video, thank you very much!

Ответить
@sunflair-wa
@sunflair-wa - 03.08.2022 07:13

I learned so much by watching you! Thank you very much for this. Question: What if you wanted to put an image in for an icon? Even harder question, what if you had a button with a pseudo::before and you wanted to put an icon in that?

Ответить
@sk8erboi84
@sk8erboi84 - 25.07.2022 11:28

Thank you for that great video but I would like to have a collapsable dropdown. Would you mind showing me how to do it please

Ответить
@gumiho2521
@gumiho2521 - 23.07.2022 05:46

hey brian thankyou for awesome video, i have question, what if we add multi level menu on sidebar? example overview -> reports -> reports a, b, c

Ответить
@timothyvandeweerd946
@timothyvandeweerd946 - 21.07.2022 16:53

Thank you sir, it was just what I was looking for. This was an excellent tutorial and is much appreciated. Can I ask how you would have all of the items that have sub items expand initially?

Ответить
@eddypenaranda8787
@eddypenaranda8787 - 20.07.2022 16:52

Thanks for the video, only one thing, the sidebar is not responsive right?

Ответить
@lucas-pe2290
@lucas-pe2290 - 13.07.2022 22:46

how to do with 3 menu options, example "Reports/Reports 3/Reports3-A" HELPPPP

Ответить
@CarlosDiaz-ed9po
@CarlosDiaz-ed9po - 11.07.2022 02:59

buenas como puedo hacer esa barra con next js ?

Ответить
@pumagaming8765
@pumagaming8765 - 18.06.2022 19:07

plz help

Ответить
@pumagaming8765
@pumagaming8765 - 18.06.2022 19:07

My dropdown not working

Ответить
@galaxy1066
@galaxy1066 - 14.06.2022 18:58

what is name of his theme ?

Ответить
@marthaizquierdo3175
@marthaizquierdo3175 - 16.05.2022 01:46

thanks so much for this vid! it helped a ton!! i was wondering though, how can we get a submenus submenu to display? I noticed some other comments were asking a similar question but I didnt see a response.

Ответить
@TheTopDawg97
@TheTopDawg97 - 26.04.2022 13:21

Love you dudeeee! Omg im just starting to create this app for my company and I had no idea to do the drop box and dude! THANK YOU! After days, I finally figured out

Ответить
@atnguyenucchi9776
@atnguyenucchi9776 - 26.03.2022 05:42

i have problem when i open sidebar the page will be hide , what can i do to fix problem?

Ответить
@akashagrawal5067
@akashagrawal5067 - 08.03.2022 09:04

Hi, can you please show an example of multilevel sidebar navigation up to 3 level in react. :)

Ответить
@susanbasnet3831
@susanbasnet3831 - 23.02.2022 12:54

hay how can we show only one dropdown menu at a time like if you have open report and now you want to open a message. you click on message and now your report will hide and only messages list will be show

Ответить
@johnspinelli9251
@johnspinelli9251 - 02.02.2022 22:22

This was a great tutorial. Enjoyed and really easy to follow. I want the sidebar to be at the same z index as the regular page. so when expanded, it shrinks the main content instead of covering it. Any suggestions?

Ответить
@pezhmanaslani9346
@pezhmanaslani9346 - 31.01.2022 02:55

nice job .How Can i make responsive this sidebar?

Ответить
@xuanlocnguyen7563
@xuanlocnguyen7563 - 14.01.2022 16:30

Great tutorials, it's very useful for me

Ответить
@manmountain462
@manmountain462 - 27.12.2021 00:03

My fav react tutor! ⭐

Ответить
@abrahamolatubosun4289
@abrahamolatubosun4289 - 26.12.2021 07:17

Great video Brian, it will be nice if after selecting a child component (Link) the sidebar should disapare to the left, it will make the navigation better. Thanks anyway.

Ответить
@raidenc9846
@raidenc9846 - 17.12.2021 17:50

How can I add a sub menu in a sub-menu??

Ответить
@kevinherrera8231
@kevinherrera8231 - 30.11.2021 20:23

Greetings, thank you very much for the content.
A question:
I have a top navigation bar and this side navigation bar overlaps, how can I make the side one start just below the top one?

Ответить
@rajan_mishra
@rajan_mishra - 17.11.2021 21:16

Thanks Brian for this awesome video. Any tricks if I want to keep the sidebar always Open and Show the content in the Right pane. What changes it would need in that case? Really appreciate your help.

Ответить
@thetowerfantasymusic
@thetowerfantasymusic - 13.11.2021 21:08

------------> How do I close one dropdown when I open another ?

Ответить
@mirkoprazzoli8784
@mirkoprazzoli8784 - 10.11.2021 22:11

hey bro, amazing tutorial, but how can I make disappear the sidebar when I click on tab of sidebar?? Thx

Ответить
@thomasdeepakreddy7308
@thomasdeepakreddy7308 - 02.11.2021 15:22

Hi Brian
I am currently working on web-application developing tab-section similar to web-browser tab using reactis.

My requirements are-Tab-section similar to browser tab. On selecting a feature in side-navbar, a tab has to pop in the tab-section. On selecting a new feature in side-navbar, a new tab has to pop in the tab-section. Closing of tab.

I have gone through react-draggable-tabs, but it does'nt have on selecting a feature a tab has to pop instead it shows entire tab.

Please help me out in it.

Ответить
@arvinlanuza1473
@arvinlanuza1473 - 23.10.2021 20:59

what if function instead of path? example: logout button you put a sidebar. instead using path, function logout triggred when you push the logout button in a sidebar

Ответить
@thedeveloper9896
@thedeveloper9896 - 23.10.2021 08:51

how to add transition to when you click to open the dropdown? i really tried to make it smooth. also anyway to not go to the link when there is dropdown and u click the main root? cuz thats not how dropdowns work man.... there should only be link when u click the items on the dropdown or when theres no dropdown and u click the sidemenus

Ответить
@jaweriafatima5039
@jaweriafatima5039 - 18.10.2021 08:57

you are amazing bro

Ответить
@nachoacaso5673
@nachoacaso5673 - 16.10.2021 15:12

Traducir por voz
128 / 5000
Resultados de traducción
To start I love your videos, I would like if you can make one with React Sidebar Navbar Footer and of course responsive. 🙏

Ответить
@lauencepulido1989
@lauencepulido1989 - 07.10.2021 05:03

Hi, How to close other open submenu when clicking to another menu. tnx

Ответить
@reaganaustin5968
@reaganaustin5968 - 05.10.2021 21:53

Hey is there a way to make it so that the navbar at the top is fixed to the top of the screen so you can't scroll down and it disappear?

Ответить
@milanpandey7398
@milanpandey7398 - 01.10.2021 17:39

How would you close one dropdown when the other is open?

Ответить
@alexandertien9915
@alexandertien9915 - 06.08.2021 09:41

That's exactly what i need right now! Thanks u so much! Keep it uppppp <3

Ответить