@dok1qq/splitter
v0.0.3
Published
Minimal react splitter component
Downloads
1
Readme
Splitter
Minimal react splitter component
Usage example
import '...css';
import { Splitter } from '...';
function App() {
return (
<Splitter direction="vertical">
<Top />
<Separator />
<Bottom />
</Splitter>
);
}
Props
| Property | Description | Type | Default | |-----------|--------------------|:------------------------:|:-----------:| | direction | Determine layout | 'vertical', 'horizontal' | - | | side | Initial split size | number | - | | min | Min split size | number | 0 | | max | Max split size | number | Max content |