bvaughn / react-resizable-panels

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

is there best practice when I want set responsive panel size? #361

Closed cmingxu closed 1 month ago

cmingxu commented 1 month ago

Say I want 15% for lg screen and 25% for md screen ?

bvaughn commented 1 month ago

That’s kind of out of scope of this library. I would maybe do something like listening to the “resize” event and then updating the panel size values in state whenever the sizes change (from what you consider large to small or small to large)