Closed jpainam closed 3 months ago
Hi. I can listen to size changes with onExpand and with onCollapse, but I can't find a way to set the size of a panel programmably. I would like to programmbly set the panel size on user clicked.
onExpand
onCollapse
Thanks.
Have you read the docs?
panelRef.resize() does exactly what you’re asking
https://react-resizable-panels.vercel.app/examples/imperative-panel-api
❤️ → ☕ givebrian.coffee
Hi. I can listen to size changes with
onExpand
and withonCollapse
, but I can't find a way to set the size of a panel programmably. I would like to programmbly set the panel size on user clicked.Thanks.