Component
CaptionCharter
Choose Brief, Ledger or Receipt. Brief keeps only the opening words, Ledger renders every word as a numbered filing and Receipt replaces the caption with its character count plus a source line. Withdraw policy returns to the unfiled caption.
Possible use
It could let a reviewer vote whether a handoff caption should be brief, itemized or counted, or let a presenter give an agenda line a temporary document status. The policy changes presentation without adding meaning.
Reasonable alternative
A reasonable local alternative is authoring the intended format at the call site and keeping the full caption nearby. A charter turns an obvious content decision into a ballot.
01 / Preview
Try it yourself.
Current document
Prepare the remarkably ordinary handoff
Mechanism
- 1
- Choose Brief, Ledger or Receipt.
- 2
- The caption becomes a different real document shape.
- 3
- Withdraw the policy to return it to ordinary reading.
02 / Usage
Put it somewhere.
example.tsxTSX
import { CaptionCharter } from "gra-ui";
import "gra-ui/styles.css";
export function GovernedCaption() {
return <CaptionCharter label="Prepare the remarkably ordinary handoff" />;
}03 / API
Small surface area.
PropTypeDescription
labelstringThe caption submitted to three incompatible filing policies.