···11+---
22+title: Window Splitter
33+description: A flexible window splitter component for creating resizable panel layouts.
44+---
55+66+import { PropDocs } from '../../lib/PropDocs'
77+import { Example } from '../../lib/Example'
88+import { Basic } from '../../examples/window-splitter/basic'
99+import { Vertical } from '../../examples/window-splitter/vertical'
1010+import { ThreePanels } from '../../examples/window-splitter/three-panels'
1111+1212+<Example src={Basic} />
1313+1414+## Installation
1515+1616+Run the following command to add the window-splitter component to your project.
1717+1818+```bash
1919+pnpm hip install window-splitter
2020+```
2121+2222+## Props
2323+2424+This component is built using [@window-splitter/react](https://react-window-splitter-six.vercel.app/docs/install), which follows the [WAI-ARIA Window Splitter pattern](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/).
2525+2626+<PropDocs components={["PanelGroup", "Panel", "PanelResizer"]} />
2727+2828+## Features
2929+3030+### Vertical Layout
3131+3232+Panels can be arranged vertically by setting the `direction` prop on `PanelGroup`.
3333+3434+<Example src={Vertical} />
3535+3636+### Multiple Panels
3737+3838+You can create layouts with three or more panels by adding multiple `Panel` and `PanelResizer` components.
3939+4040+<Example src={ThreePanels} />
4141+4242+## Related Components
4343+4444+- [Flex](/docs/components/flex) - For flexible layouts without resizing
4545+- [Grid](/docs/components/grid) - For two-dimensional layouts
4646+- [Separator](/docs/components/separator) - For visual separation
4747+