Open nkfoss opened 3 years ago
I personally find Layout
to be a bit ambiguous. Would it encompass more than the navbar and sidedrawer? Like the content of a full page, almost like our App
right now?
My intention with Navbar
I think was like your idea of conditional width query for the drawer or bar. That would be calculated and executed in Navbar
. Perhaps rename it to a broader term like Navigation
. Then Navigation
is embedded in App
like Navbar
is now. Or like the way I interpret your proposal, Navigation
as one child of Layout
.
My thought is that a larger container for both the navbar/sidedrawer, and probably not anything else. The 'navigation' container would conditionally render either the navbar or drawer, and would contain all logic for that.
Just my first thoughts, open to your idea as well
Sidedrawer will be moved out of Navbar, because they are now two seperate entities
These two might have to go into their own component together. Maybe a higher-order component like
Layout
.Navbar will start showing at a minimum width, and sidedrawer stops showing at a maximum.
They will receive the same options for navigation.