A proposed wording change, shown in the text itself.
Removals are del and additions are ins, which is what makes the change survive as a change: a screen reader announces deleted and inserted text, and a copy-paste keeps the distinction. Styling spans in red and green would leave the diff invisible to anyone not seeing colour.
why is next to the change rather than in a separate comment thread. A redline without its reason is an edit somebody has to accept on trust.
import { Redline } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
parts |
RedlinePart[] |
|
label |
React.ReactNode |
|
source |
React.ReactNode |
|
why |
React.ReactNode |
Why the change is proposed. |
state |
'open' | 'kept' | 'reverted' |
|
stateLabel |
React.ReactNode |
|
keepLabel |
React.ReactNode |
|
revertLabel |
React.ReactNode |
|
className |
string |
|
onKeep |
() => void |
|
onRevert |
() => void |