Reference
What you can edit
A practical map of what nextcanvas will offer an editor for — and what it will leave alone. When something isn't editable, there's usually no outline on hover.
Native option labels, textarea content, and document title, script, and style text are left alone. Edit that copy in source. Text directly inside structural containers such as selects, lists, and table rows is also left alone; ordinary text inside list items and table cells remains editable.
Text — yes
| In your JSX | On the page |
|---|---|
<h1>Hello</h1> | Double-click the headline |
<p>Hi <strong>there</strong></p> | Edit surrounding runs; inline tags stay |
<h1>Hello {name}!</h1> | Edit the words; the {expression} is locked |
<p>Tom & Jerry — pals</p> | Entities edit as their real characters |
<Reveal as="h2">Title</Reveal> | Double-click the title |
<motion.h1>Hero</motion.h1> | Same as a plain h1 |
<Link href="/x">Label</Link> | Edit the label (and href via attributes) |
Bound text — yes
| In your JSX | What gets rewritten |
|---|---|
{s.name} in a .map | That object's name in the array |
{s.name ?? s.role} | Whichever side the UI is showing |
{t} as a map element param | That string in the array |
{cfg.title} / {COUNCIL_COPY.eyebrow} | The object property (local or imported file) |
{loading ? "Sign in" : "…"} | The string arm currently showing |
{x ?? "—"} / {job?.service} | Literal fallback or optional-chain field |
{msg.text} next to other siblings | Wrapped in a span; data entry via value-match |
{session.title} inside a child component | The mapped data entry, via the prop |
{q} as a component prop from q={f.q} | faqs[].q (etc.) |
Attributes — yes
- Literal:
href="/x",src="…",alt,title,placeholder,aria-label - Bound bare identifier:
href={GITHUB}— choose all references or just this one
Styles — yes, with limits
- Six properties either way — color, background, font size/weight, text align, padding
- Tailwind projects: written as utility classes on
className, replacing the class that controlled that property - Everywhere else: written into a literal
style={{ ... }}object - Not a computed
className—className={cn(...)}is refused - Not
style={variable}
No outline / won't edit
| Pattern | Why |
|---|---|
The {name} value inside Hi {name} | The words are editable; the interpolated value is locked (it comes from a variable) |
<p>{name}</p> — expression only, no words | Nothing static to edit (may be editable as bound text) |
{items[i].x}, {fn()} | Can't resolve a single string leaf |
| Ternary arms that aren't string literals | Only {cond ? "A" : "B"} style is editable |
| Live clocks, chat streams, validation errors | Runtime-only — not in source as literals |
Foo.Bar.Baz / namespaced tags | Not stamped |
| Duplicate bound values across entries | Refused on commit (ambiguous) — make the string unique |
Bundlers & platforms
| macOS / Linux | Windows | |
|---|---|---|
| webpack | Works | Works |
| Turbopack | Works | Prefer next dev --webpack for now |
Production
Deploy freely. In production builds nextcanvas is a complete no-op: no overlay, no stamps, no write-back server. Your users never see it.