@split-ui/react
v0.0.8
Published
A React component library for flexible panel layouts
Maintainers
Readme
@split-ui/react
A flexible and lightweight React component library for creating resizable panel layouts.
Features
- 🎯 Simple API - Just two components:
Panel, andResizer - 🎨 Customizable - Full control over styling and layout
- 💾 Persistence - Save and restore panel sizes with SSR support
- 🏗️ Nestable - Create complex nested layouts
- ⚡ Lightweight - Minimal bundle size with zero dependencies
Installation
npm install @split-ui/reactQuick Start
import { Panel, Resizer } from '@split-ui/react';
import '@split-ui/react/styles.css';
function App() {
return (
<Panel group>
<Panel initialSize={300}>
<h2>Sidebar</h2>
<p>This panel has a fixed initial size</p>
</Panel>
<Resizer />
<Panel>
<h2>Main Content</h2>
<p>This panel takes up the remaining space</p>
</Panel>
</Panel>
);
}Documentation
For complete documentation, examples, and advanced usage patterns, visit the documentation.
License
MIT
