Component
ClipboardCustody
Cut the label first, then paste it back. The document visibly leaves its case, the second action stays locked until the first has happened, and the returned wording receives a custody stamp despite being unchanged.
Possible use
A reviewer could make a handoff notice prove it was moved before accepting it back. A presenter could rehearse taking an agenda line off a slide and returning it with a ceremonial stamp. The sequence records movement, not correctness.
Reasonable alternative
A reasonable local alternative is one visible status change or an ordinary edit action. Clipboard custody should not manufacture a workflow around a reversible text operation.
01 / Preview
Try it yourself.
Current documentNO STAMP
Mechanism
- 1
- Cut the label first, with the button or Ctrl/Cmd+X.
- 2
- The document leaves its case and the paste step unlocks.
- 3
- Paste it back, with the button or Ctrl/Cmd+V.
- 4
- Reset custody when the order has been theatrically observed.
02 / Usage
Put it somewhere.
example.tsxTSX
import { ClipboardCustody } from "gra-ui";
import "gra-ui/styles.css";
export function ReturnedNotice() {
return <ClipboardCustody label="Return this notice by Friday" />;
}03 / API
Small surface area.
PropTypeDescription
labelstringThe wording that must make an ordered cut-and-paste journey.