A React component library for creating resizable panel layouts with flexible sizing options and SSR support.
npm install @split-ui/react
# or
pnpm add @split-ui/react
import { Panel, Resizer } from '@split-ui/react';
import '@split-ui/react/styles.css';
function App() {
return (
<Panel group orientation="horizontal" style={{ height: '100vh' }}>
<Panel initialSize="200px">Sidebar</Panel>
<Resizer />
<Panel>Main Content</Panel>
<Resizer />
<Panel initialSize="25%">Right Panel</Panel>
</Panel>
);
}
- Interactive examples
- Complete API reference
- Implementation guides
- Comparison with other libraries
MIT © Jan Potoms