@danfessler/trellis-react
v0.3.0
Published
React bindings for Trellis: dockable, zoomable workspaces for web tools.
Maintainers
Readme
@danfessler/trellis-react
React components and hooks for Trellis. Requires React 18.3+ and @danfessler/trellis.
Install it with the core package:
npm install @danfessler/trellis-react @danfessler/trellisDeclare view types and an initial layout:
import { Workspace, ViewType, Split, Stage, View } from "@danfessler/trellis-react";
import "@danfessler/trellis/style.css";
<Workspace theme="dark">
<ViewType id="notes" title="Notes">
<Notes />
</ViewType>
<Split weights={[1, 3]}>
<View type="notes" />
<Stage />
</Split>
</Workspace>;Documentation, guides and examples are in the Trellis repository.
License
Free for non-commercial use. Commercial use requires an active GitHub Sponsorship at the applicable tier or an enterprise license. See LICENSE.md.
