Inline edit
Outside the canonA field you change where it is shown. The rule: an annotation edits in place, a field the record's arithmetic depends on edits in the form. A credit memo's reason and its notes cannot make the totals wrong, and sending someone to a full edit form to fix a typo in a note is the friction P4 (Recovery Over Prevention) calls a failure — the fix should be one click from the thing. It is the disclosure ladder's level 0, under the tooltip: one field is less content than a popover is a container. Nothing is drawn at rest, so a rail of these still reads as text you consult: the affordance is a pencil that fades in on hover and focus, to the right of the value in the row's reserved 20px gutter, over the system's dashed-underline reveal on a single-line value and a stone wash on a note (the underline repeated down four wrapped lines reads as ruled paper). The gutter is reserved rather than opened on hover, because sliding a wrapped value left to let the glyph in re-flows the paragraph and jumps every row under it. Escape and Cancel discard; nothing is destructive, so there is no confirm. A disabled field keeps its value visible and puts the reason in a Tooltip (P8), rather than hiding that it is editable at all. A save is confirmed in place: the glyph slot shows a green circle-check for 2s and an aria-live line says "<label> saved" — no toast (docs/ux-guides.md).
App: an `inline_edit` Stimulus controller (new) — display target, form target, swap
In the Document rail
#raillayout="row": label left, value right, on the same edge as the rows that are not editable. Hover a value and the pencil fades in to its right, in the 20px gutter every rail row reserves, with the dashed underline on a single line and a stone wash on a note; click it and the row stacks into a labelled field with Cancel and Save. A 150px value column cannot hold a field and two buttons, which is why editing always stacks.
In the Document rail, as text
#textappearance="text", as the credit memo's Reason, Detail and notes have it: each row has exactly the shape of the rail's other rows: the label in its column, the value right-aligned beside it, a note wrapping inside the value column the way an address does, never under the label. Hover anywhere on the row and a pencil appears at the start of the value's first line — in the space a ragged first line leaves, or the gap after the label — so it never covers the text and nothing moves. No underline, wash or tooltip.
Stacked
#stacklayout="stack": label over value, for a content column rather than a rail. The empty value reads as its empty_label in stone-light.
Locked, with the reason
#disabledP8 (Show Why, Not Just What): the value stays visible and plain, and the Tooltip says what would make it editable. Hiding the affordance would leave "why can't I change this?" unanswerable.
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| label | string | — | The row's label and the field's accessible name |
| value | string | — | For `options`, the option's value |
| onSave | (value: string) => void | — | Called on Save, only when the value changed |
| layout | row | stack | row | row is the Document rail's two columns; editing always stacks |
| multiline | boolean | false | Textarea; Enter adds a newline, Cmd/Ctrl+Enter saves |
| options | { value, label }[] | — | Renders a Select instead of a text field |
| placeholder | string | — | |
| empty_label | string | — | What an empty value reads as, in stone-light |
| italic | boolean | false | For a note written by a person, as the reference sets its internal note |
| edit_label | string | Click to edit | The hover Tooltip — what the underline or the wash means (reveal only) |
| appearance | reveal | text | reveal | text (2026-10-13, after Mercury): the rail's plain text, right-aligned in the value column beside the label and wrapping inside it (a note wraps like an address, never under the label); on hover a pencil at the start of the first line, never over it; no underline, wash or tooltip; the whole row is the target. The credit memo's Reason, Detail and notes. It replaced field (a quiet field box under the label) the same day |
| disabled | boolean | false | |
| disabled_reason | string | — | P8: the Tooltip on a locked value |