You can use the collapsedSize and collapsible props to create collapsible panes. The collapsedSize prop sets the size of the pane when it is in a collapsed state, and the collapsible prop determines whether the pane can be collapsed.
You can also use the onCollapse and onExpand callbacks to perform actions when the pane is collapsed or expanded, along with the pane prop to get a reference to the Pane component's API to programmatically collapse or expand the pane.