-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Molecule - Navbar #42
Comments
|
NavItem will provide a PseudoBox, it can have children as string or component like Link, Menu or Dropdown. |
I'd like to propose a NAV component first, because a nav can exist outside of a navbar. There can be a vertical variant of a nav component. Navbar is just a composition of several Nav components. |
We can call it a menu component too, it's essentially a menu of choices. Good example with variants: https://ant.design/components/menu/ |
why do we need to change the composition in responsiveness?
Lets take Am I going in the right direction?
Yeah, it can be. But that dropdown can be a separate Dropdown component which we will build. |
Like this - https://react-bootstrap.github.io/components/navs/ We can have a separate Menu Component with Menu Item in it. |
|
just defines that which set navItem to collapsable. we need to have one more sub-component which resposible for hamburger icon(or any other) and its position in navbar. Or it can just be a navItem that changes the collapse state |
@govindsingh55 Can you write the psuedo code in here in case of responsive navbar ? |
@navin-moorthy can we open a RFC for menu ? |
|
this what I had composed previously. |
Navbar Collapse can have hamburger menu on right or left, that will change the state of the responsiveness.
We will have the items that will get collapsed in NavbarCollapse when in mobile. Like from popover state in large screens to inline state in smaller screen. |
I have read this component and sorry I cannot get the answer from that chunk. My question was little different. "How will the code look like when it is in desktop and in mobile. Will it be the same (or) will it be different? If different can you just mention how the atoms will be composed ?" |
Yes getting it now. So ideally the code is not going to change right ? |
When the state changes to mobile, items can become full width.
Yeah, we can convert the dropdowns to sub menus which we can compose it in dropdown for this behaviour. What do you say? |
Is this reply & questions to @govindsingh55 component? confused |
Yes, @govindsingh55 's code. |
I can get the end goal, but not sure how to achieve it. Probably we can rethink about this once we finish Menu component first. |
This issue will serve as a starter to understand the molecule development. We will be building a Navbar.
The Goal:
Build a Navbar with Chakra Components
Import
Component Parts:
Usage
Props
No idea on how we can have props for these components, because they can already be achieved via styled props from our components, because all the component are built on top of Box.
Need to think on how we are giving the props.
NOTE: This is only an initial model, everything is subject to change based on the RFC discussion.
The text was updated successfully, but these errors were encountered: