A WAI-ARIA compliant window splitter for React.
npm install @window-splitter/react@window-splitter/reactA full featured window splitter for React.
- Support for the full window splitter ARIA spec
- Support for percentage and pixel based constraints
- Collapsible panels
- Controlled panels
- Layout Persistance - LocalStorage and Cookie
``bash`
npm install @window-splitter/react
yarn add @window-splitter/react
pnpm add @window-splitter/react
`tsx
import { PanelGroup, Panel, PanelResizer } from "@window-splitter/react";
function Example() {
return (
);
}
`
While not required for the simple case, for anything more complex you will
need to add an id prop to your panels and handles.
This is so that the component can tell all of the components apart during layout and rendering.
Features that require id`:
- Conditional Panels
- Server Side Rendering
- React Strict Mode
This library is heavily inspired by the following libraries: