Replies: 1 comment 1 reply
-
This library wasn't really written with the use case in mind of all panels being collapsed. If you wanted to implement that kind of UI, I would probably suggest that you listen for a panel to be collapsed, and then conditionally render it (rather, don't render it) until/unless the expand button is clicked again. This way, if all panels are collapsed, you'd end up rendering a panel group without any panels. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, Panel Wizards! 🧙♂️✨
First off—loving
react-resizable-panels
! I’m diving into it to build out a sidebar experience, and I’m aiming for that oh-so-smooth, VSCode-style mojo, where all sidebar panels can be collapsed into a one-by-one column - minimal, clean, and out-of-sight when you need a max workspace.However, right now it seems like at least one panel insists on staying open. I’m wondering if there’s a way to get all panels to collapse when needed, or if this might need a little custom tinkering under the hood.
I’ve put together a little CodeSandbox for context: CodeSandbox.
I would love any thoughts, tricks, or secret spells you might have to make this happen! 🪄
Thanks a lot! 🚀
Beta Was this translation helpful? Give feedback.
All reactions