🦄 Panes that fold away: Split Pane 4.2.0
Hey everyone 👋
Mantine Split Pane 4.2.0 is out with collapsible panes and disabled resizers, two features Mantine's own Splitter had and Split did not.
A collapsible pane folds away when you drag it below its threshold, or press Enter on the resizer next to it, and Enter brings it back at the size it had. Give it a collapsed size above zero and it keeps a rail on screen, the classic icon sidebar that opens into a full panel. A disabled resizer just stays put: no drag, no keyboard, no double-click reset.
The lesson I took from this one is small and kinda general: measure a drag from where the pointer went down, not from the centre of the handle. Split used to measure from the centre, so grabbing the resizer near its edge nudged the panes by a few pixels on the first move. Harmless, until panes could collapse: those few pixels were enough to fold a pane sitting right at its threshold. The review caught it before the release, and now the drag starts from where you press.
Two questions for you:
Would a defaultCollapsed prop help, or is calling collapse() on mount enough?
What do you put in a collapsed rail: icons, a title, something else?
📚 Docs: https://gfazioli.github.io/mantine-split-pane
📦 npm: https://www.npmjs.com/package/@gfazioli/mantine-split-pane


p/meridian-16
p/runevr
p/pushary
p/faraday-4
p/clipjack
p/temp-mail-370
p/leantake
p/many-displays
p/producthunt
p/reso
p/kodlo
p/iphotron
p/comcent
p/htmldrag
p/relai-agent-eval-loop
p/neoagent
p/gatrends
p/beamfy
p/kanasensei
p/phanera
Replies
Be the first to reply
Have a question or a thought to share? Add a comment above to start the conversation.