Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Navbar.Menu not opened when is-active #12

Open
MagicMagnate opened this issue Jan 6, 2019 · 0 comments
Open

Navbar.Menu not opened when is-active #12

MagicMagnate opened this issue Jan 6, 2019 · 0 comments

Comments

@MagicMagnate
Copy link

MagicMagnate commented Jan 6, 2019

I found I need to override the props in Navbar and can't use with something like active={toggle} as in Navbar.Burger, here's my workaround:

<Navbar.Menu shazzam={toggle}>

and in your Navbar.js (components) I added props for display,

export const NavbarMenu = styled.nav
display: ${props => props.shazzam ? "block" : "none"};

Tried them with default next.js settings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant