-
|
Hey, Panel Wizards! 🧙♂️✨ First off—loving 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.
Replies: 2 comments 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.
-
|
I know this is an old question but I thought I'd share an example of how to do this sort of thing with the latest version of the library. |
Beta Was this translation helpful? Give feedback.
I know this is an old question but I thought I'd share an example of how to do this sort of thing with the latest version of the library.