The canvas screen
A canvas screen holds one document or artboard: text on a reading measure that scrolls, or, with a full plate, an artboard that fills the screen and pans and zooms inside itself beside an inspector on the right. A toolbar floats over it, and on a phone the plate and the inspector stack in one scroll, the inspector first when it holds the decision the person came for.
By Bohuslav PoláčekChecked
export type CanvasScreenProps = Base & {
archetype: "canvas";
/** Floating toolbar over the document. */
toolbar?: ReactNode;
/** The inspector on the right. */
inspector?: ReactNode;
/**
* `measure` (default): text on a reading measure that scrolls. `full`: the plate fills the screen beside the
* inspector and pans and zooms inside itself (an artboard, a dieline); on a phone the plate and the inspector
* stack in the one scroll.
*/
plate?: "measure" | "full";
/** With `plate="full"`, a phone shows the inspector before the plate (the decision a person came for). */
inspectorFirst?: boolean;
children: ReactNode;
};Anatomy
- Header (
header): the document's title, the job number and the version as the eyebrow, the state inmeta. One primary action ("Send for approval") and at most two secondary ones, built from what applies ("Save again", "Save a version"). At Foldline the header carries the number, the title, the state and the customer only, and saving is silent unless it fails. - Plate (
children): the document or the artboard. - Inspector (
inspector): the column on the right. At Foldline it shows the selected layer's properties, or, with nothing selected, the design itself: its next step or the customer's decision, its facts and history, the preflight and the versions. - Toolbar (
toolbar): floats at the bottom centre, over the plate. - Plate mode (
plate):measure, the default, orfull. - Inspector first (
inspectorFirst): with a full plate, a phone shows the inspector before the plate.
Two plates
| Plate | measure (default) | full |
|---|---|---|
| The document | text on a 46rem reading measure that scrolls | fills the screen, pans and zooms inside itself |
| The inspector | 18rem on the right from 1024px, hidden below | 21rem on the right from 1024px; on a phone under the plate, or before it with inspectorFirst |
| What scrolls | the document | on a desktop only the plate and the inspector's own content; on a phone the stack, once |
Every canvas in the demo uses full: Foldline's print file editor, Stonebridge's drawings and Fernhill's scenarios. The header runs full width either way. A canvas opens no records (decision 0001): it is the work surface of one, and what belongs to it opens on the plate or in the inspector. A comment at Foldline is a pin on the flat that opens its thread in a card on the stage; a pin on a Stonebridge drawing opens in a side panel, so the board and the list of pins stay usable.
Phones and keys
On a phone Foldline's editor is for looking and commenting, and it says so. A customer who came to approve a proof gets the decision first: inspectorFirst is on while the design waits for her, as the code's comment puts it, "The decision a customer came for comes first on a phone." Fernhill's scenarios show their steps as a list on a phone, the same steps as the canvas (FlowOutline beside FlowCanvas).
On a desktop the editor works from the keyboard: Cmd/Ctrl+Z and Shift+Cmd/Ctrl+Z undo and redo, Cmd/Ctrl+D duplicates, Cmd/Ctrl with the bracket keys changes the order, and Delete removes with an undo in the toast. There are no single-key shortcuts (WCAG 2.1.4): the arrows and Delete act only on a focused layer. Roles change what can be done, not the screen: prepress edits everything, sales edit text, the press operator reads, and the customer sees the version she was sent.
The rules and where they are enforced
| Rule | Where it is enforced |
|---|---|
| The plate pans inside itself; the page never scrolls, and nothing scrolls inside a scroll | page-scroll and nested-scroll; Foldline's soap box design is the type's sample in e2e/screens.spec.ts, at 1440 and 390, light and dark |
| The decision a person came for comes first on a phone | inspectorFirst, and the root AGENTS.md, "Responsive" |
| No sideways scroll on a phone | horizontal-overflow in the runtime audit |
| No single-character shortcuts | the root AGENTS.md (WCAG 2.1.4) |
| One primary action, at most two secondary ones | the type: secondary is a tuple of one or two |
What AI coding tools build instead
- An artboard inside a scrolling page. Panning the plate scrolls the page, or the page scrolls the plate away. Here a full plate pans inside itself, and on a desktop nothing else scrolls.
- An inspector squeezed beside the plate on a phone. Here it stacks under the plate, or above it when it holds the decision.
- Single-letter tool keys, which WCAG 2.1.4 rules out because a stray key press or speech input sets them off.
- Markers placed by hand on an image:
PinBoardreplaces "an image with absolutely positioned hand-made markers". - A diagram library for a flow of steps:
FlowCanvasreplaces "React Flow or another diagram library", and its outline gives phones and screen readers the same steps as lists.
Screens of this type
- Proof approval: Foldline's print file editor as the customer sees it, the decision first on a phone, in the Foldline example app.
- Workflow canvas: a Fernhill scenario, its steps drawn on a canvas that pans and zooms.
- Defects on drawings: Stonebridge's drawings register is a list, and each drawing opens as a canvas with its pins on the sheet.
- The decision on the proof: the approval flow pattern.
Example apps with a canvas
| Example app | Modules | Side panel first | Decision card | History |
|---|---|---|---|---|
| An app for a packaging and print company | 5 | Yes | Yes | Yes |
| An app for a roastery with an online shop | 5 | Yes | No | Yes |
| An app for a construction company | 8 | Yes | Yes | Yes |
How Foldline's print file editor fills the slots
const quiet = [saveAgain, versionButton].filter(Boolean);
const actions: ScreenActions = {
primary: sendButton,
secondary: quiet.length === 2 ? [quiet[0], quiet[1]] : quiet.length === 1 ? [quiet[0]] : undefined,
};
return (
<Screen
archetype="canvas"
plate="full"
// The decision a customer came for comes first on a phone.
inspectorFirst={customer && design.status === "customer"}
header={{
eyebrow: [
design.jobNumber,
latestVersion
? tx(
`verze ${customer ? design.sentVersion : latestVersion.number}`,
`version ${customer ? design.sentVersion : latestVersion.number}`,
)
: null,
]
.filter(Boolean)
.join(" · "),
title: design.title,
meta: <DesignStatusLabel status={design.status} className="text-sm text-fg-muted" />,
actions,
}}
inspector={right}Questions
When is a screen a canvas rather than a record?
When the document itself is the work: an artwork to check, a drawing to mark, a flow to read. A record lists facts about a thing; a canvas shows the thing, with its facts in the inspector beside it.
What does a canvas editor do on a phone?
With a full plate, the plate and the inspector stack in one scroll, the inspector first when it holds the decision the person came for. Foldline's editor says on a phone that it is for looking and commenting.
Why does the editor have no single-key shortcuts?
WCAG 2.1.4 rules them out, because a stray key press or speech input would set them off. Every key takes a modifier, and the arrows and Delete act only on a focused layer.
What is the difference between the two plates?
The measure plate sets text on a 46rem column that scrolls, with an 18rem inspector from 1024px. The full plate fills the screen and pans and zooms inside itself beside a 21rem inspector, and every canvas in the demo uses it.
Related
- A proof the customer approves in their own portalScreens
- Defects pinned on the drawing, carried across revisionsScreens
- A change order that shows its price before anyone approves itScreens
- A content calendar for a creator's posts and brand dealsScreens
- A document inbox that catches a changed bank accountScreens
- A packaging quote that works out its price as you typeScreens
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app