foundry-ui
foundry-ui copied to clipboard
New Component | MainNavigation
I had previously made the point to not create any application-specific components like this, but given we have composed components like "Card" which simply follow a pattern, I feel like we can provide a simple container which is extensible.
Propose your own API and features! I'll make some suggestions below, but feel free to be creative. <3
- Container (component, props, ref) - horizontal flexbox
- Left (head?), middle (body?), and right (footer?) for hamburger menu/logo, links/tabs, and CTA buttons etc.
- Attachment options like absolute, sticky, etc?
- Would be cool to expose scroll pos/velocity info to the subcomponents so it can hide/condense as the user scrolls