bvaughn / react-resizable-panels

https://react-resizable-panels.vercel.app/
MIT License
3.87k stars 135 forks source link

How to control panel collapse? #272

Closed n1203 closed 8 months ago

n1203 commented 8 months ago

For example

I want to control the collapse state when double click the element.

image

n1203 commented 8 months ago

thank you @bvaughn 🙏

bvaughn commented 8 months ago

Glad you found it :)

Salumsu commented 1 month ago

Hi, how about locking the panel in collapsed mode when in mobile?

bvaughn commented 1 month ago

Seems like something you could do with props (default/min/max size) that you pass conditionally based on user agent.