Two different props are called collapsible.
- On the Splitter it is { motion, icon }: whether collapsing animates, and which icons the buttons use. It does not turn collapsing on.
- On a Panel it is boolean | { start, end, showCollapsibleIcon }: which way that panel can collapse, and when its buttons show. The buttons only appear on a panel that sets it.
showCollapsibleIcon defaults to "auto", which shows the button when the bar is hovered or focused, and always on touch devices. true always shows it. false removes it, and with it the only keyboard way to collapse the panel.
A collapsed panel remembers its size, so the same button restores it. A panel dragged to zero does not. collapsible.motion is off by default. Turn it on for a smooth fold, unless the panel's content is heavy to reflow.