Skip to content

Navbar + Sidenav: Connecting the Navbar.Toggle to Sidenav collapsed #244

Closed
@PlasticLizard

Description

Is your feature request related to a problem? Please describe.
I am trying to connect the Navbar.Toggle to the Sidenav.collapsed, but it doesn't appear as if the necessary Navbar.Toggle context is exported publicly.

Describe the solution you'd like
I'm presuming an easy way to do this would be to import the Navbar.Toggle context into a page using Sidenav, and sync it with the Navbar collapsed state, but I can't see an easy way to do this as the Navbar.Toggle context is not exported publicly.

Describe alternatives you've considered
Creating my own toggle component, mostly a copy of the official one with the context exported.
Using an even handler on the toggle component, but it does not appear one is available.

Additional context
None

NOTE: I'm happy to put a PR in for this, however I'm not sure if I'm missing an established solution so want to make sure what the correct resolution would be first.

Metadata

Assignees

No one assigned

    Labels

    needs infoFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions