Sheet
A spreadsheet in suggesting mode. People edit cells in place; an agent's edits show up on the cells they would change.
| Candidate | Role | Stage | Score | Next step | ||
|---|---|---|---|---|---|---|
| 1 | Maya Chen | Staff engineer | 86 | |||
| 2 | Daniel Okafor | Product designer | 72 | |||
| 3 | Priya Raman | Staff engineer | 91 | |||
| 4 | Lucas Moreau | Data scientist | ||||
| 5 | Sofia Alvarez | Product designer | 78 | |||
| 6 | Tom Becker | Data scientist | 64 |
Installation
Then import its styles from your Tailwind entry, as in Installation.
Usage
The Sheet fills the box you give it and scrolls inside it.
Data
Every column and row has a key that never moves, so a model writes /rows/r3/cells/stage, never /rows/2/cells/4. Order is a field, sorted when the Sheet draws. An empty cell is a missing key.
sheetStore explains this layout to the agent and checks every proposal against it: a number column takes numbers, an enum column takes one of its values. A proposal that breaks the sheet is refused with the reason, before anyone sees it.
Agent
What the model sends to fill a cell, add a row and remove one:
A changed cell shows its current value struck through and the proposed one beside it. Rows the agent would add or remove are listed under the table. Agents shows how to connect a model.
Interactions
| Do this | To |
|---|---|
| Click a cell | Select it. Drag or Shift-click to select a range. |
| Double-click, Enter, F2 or start typing | Edit the cell. |
| Right-click | Row and column menus: add, remove, sort, column settings. |
| Click a suggestion | Accept or reject that proposal on its own. |
| Ctrl / ⌘ + Enter | Accept all. |
| Ctrl / ⌘ + Backspace | Reject all. |
API Reference
Sheet
| Prop | Type | Description |
|---|---|---|
store | SheetStore | The data, from sheetStore, or a workspace store holding the sheet. |
at | string | Where the sheet lives in the store, like /sheets/hiring. Leave it out when the store is the sheet. See Linking. |
loading | boolean | The data is still on its way: the Sheet shows its skeleton. |
compact | boolean | The small form for a sheet embedded in a chat reply or a post: no Filter button, and the bar only while something is pending. |
bulk | boolean | Show Accept all and Reject all. On by default; a Doc turns it off for the sheets it draws, since its own bar takes them. |
sheetStore
| Option | Type | Description |
|---|---|---|
name | string | Names the tools: ${name}_read, ${name}_propose. Defaults to sheet. |
about | string | What this sheet is, for the agent. Added in front of the layout it is told. |
A SheetStore is a usecube store: snapshot, propose, accept, reject, edit and tools all work on it. See Concepts.