How can I design a splitter component?

You know, the thing that lets you split a frame in two, horizontally or vertically?

Example: React Layout Library & Splitter Component - Overview | KendoReact Docs & Demos