A split pane component written in React.
npm install @ihatecode/react-splitter
sh
npm
npm install @ihatecode/react-splitter
yarn
yarn add @ihatecode/react-splitter
pnpm
pnpm add @ihatecode/react-splitter
`
Usage
`jsx
import React from 'react';
import Splitter from '@ihatecode/react-splitter';
import '@ihatecode/react-splitter/lib/style.css';
const App: React.FC = () => {
return (
items={[
{
size:200,
min:100,
max:300,
content:Left
},
{
size:'50%',
min:'25%',
max:'75%',
content:Right
}]
}
/>
);
};
export default App;
``