Installation
Add Cube to a React app with Tailwind CSS.
Requirements
React 18 or later and Tailwind CSS v4. Components install with the shadcn CLI, so a project already set up for shadcn/ui is ready as it is. Any React framework works: Next.js, Vite, React Router.
Add a component
Add the Sheet
This copies the component into your project and installs its dependencies, the core included.
Import its styles
In the CSS file where you import Tailwind:
Make a store and render it
The store holds the data. The Sheet fills the box you put it in and scrolls inside it.
Give the agent its tools
store.tools() returns pipeline_read and pipeline_propose. Hand them to your model; its edits appear in the Sheet as suggestions. Agents has the code for each SDK.
Without the CLI
Install the core, then copy the files from the registry into your project.
The component's files are listed in sheet.json. They also need lucide-react. The core is on npm.