Package Exports
- allotment
- allotment/dist/legacy.js
- allotment/dist/modern.js
- allotment/dist/module.js
- allotment/dist/style.css
- allotment/dist/types/src/allotment.d.ts
- allotment/dist/types/src/helpers/disposable.d.ts
- allotment/dist/types/src/helpers/platform.d.ts
- allotment/dist/types/src/helpers/range.d.ts
- allotment/dist/types/src/index.d.ts
- allotment/dist/types/src/sash/index.d.ts
- allotment/dist/types/src/sash/sash.d.ts
- allotment/dist/types/src/split-view/index.d.ts
- allotment/dist/types/src/split-view/split-view.d.ts
- allotment/dist/types/src/split-view/split-view.test.d.ts
Readme
Allotment
React split-pane component.
- React-based: Integrate effortlessly into your existing React-based application.
- Industry standard look and feel: Like VS Code's split view implementation? You're in luck! This component is derived from the same codebase.
- Dynamic: Want to declaratively add and remove panes? We've got you covered.
Getting Started
Allotment is available from npm.
Prerequisites
Allotment has react
and react-dom
as peer dependencies.
yarn add react react-dom
Installation
yarn add allotment
Usage
import React from "react";
import { Allotment } from "allotment";
export const App = () => (
<Allotment>
<ComponentA>
<ComponentB>
</Allotment>
);