-
Notifications
You must be signed in to change notification settings - Fork 104
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
Menu expanded and active elements #79
Comments
Had the same issue and came to this post trying to solve it. What i did to have the sidenav expanded by default was setting defaultExpanded to true inside the first Sidenav: |
Hello!!! I have 2 questions and I would like to ask for help :)
The first question is how can i make the default menu appear open? i'm trying to use the "expanded" parameter but it doesn't work.
The second question is when I click on an element how can I say that it is active and the other elements are not active?
I am looking at the documentation of this link: https://www.npmjs.com/package/@trendmicro/react-sidenav
But I can't get it to work, I hope you can help me.
Here is my code for your help.
Thank you very much.
`<SideNav
onSelect={(selected) => {
console.log(selected)
}}
>
<SideNav.Toggle />
<SideNav.Nav defaultSelected="">
The text was updated successfully, but these errors were encountered: