@mocanvas/mocanvas · interface

PageItemInputProps

interface PageItemInputProps

The page picker.

A menu rather than a tab bar: a document with twenty pages has to stay usable, and a row of twenty tabs does not. The current page's name doubles as the trigger, so the panel costs one button's worth of chrome.

## Why the per-page actions are behind their own trigger They used to be three rows printed beside every page name, which made a five-page document a twenty-row menu in which nothing said which "Delete" belonged to which page. One trigger per row, opening a menu that names the page it acts on, is the same three actions without the ambiguity — and it leaves the row itself as what it should be: the thing you click to switch page.


Properties · 4

id: PageId
isCurrentPage?: boolean

Focus and select the field as soon as it mounts.

name: string
onCancel?(): void

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.