Disagreement Marker
Trust component
<loquix-disagreement-marker> records that a user pushed back on an answer and leaves that visible in the transcript. It comes as a small inline pill for trailing references, or as a banner attached to the disputed message.
Preview
Section titled “Preview”import '@loquix/core/define/define-disagreement-marker';<loquix-disagreement-marker variant="banner" reason="The quoted refund window contradicts the current policy document." resolvable></loquix-disagreement-marker>const marker = document.querySelector('loquix-disagreement-marker');
marker.addEventListener('loquix-disagreement-resolve', () => { clearDisagreement(messageId); marker.remove();});The component does not remove or hide itself when the resolve button is clicked — it reports the intent and leaves the decision to you.
Variants
Section titled “Variants”| Variant | Use it for |
|---|---|
inline |
A compact pill after a sentence or in a message footer. |
banner |
A block attached to the disputed message, with room for a reason and extra content. |
resolvable adds a “Mark resolved” button, and applies to the banner only.
Properties
Section titled “Properties”| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
variant |
variant |
'inline' | 'banner' |
'inline' |
Visual shape. |
reason |
reason |
string |
— | Shown beneath the title in the banner, or after the label in the pill. |
resolvable |
resolvable |
boolean |
false |
Banner only. Shows the “Mark resolved” button. |
Events
Section titled “Events”| Event | Detail | Description |
|---|---|---|
loquix-disagreement-resolve |
— | Fired when the resolve button is clicked. |
Content slot
Section titled “Content slot”Banner only. Use it for what happens next — a correction, a link to the authoritative document, a note that a human is reviewing.
<loquix-disagreement-marker variant="banner" reason="Figures are from 2023"> <a href="https://example.com/policies/refunds">Open the current policy</a></loquix-disagreement-marker>CSS parts
Section titled “CSS parts”| Part | Purpose |
|---|---|
marker |
Wrapper element — the pill inline, the container as a banner. |
icon |
Leading icon. |
body |
Banner body holding title, reason, and slotted content. |
title |
Banner title. |
reason |
Banner reason text. |
resolve |
The “Mark resolved” button. |
CSS custom properties
Section titled “CSS custom properties”The palette is shared with the low-confidence level of Confidence Indicator, so both read as the same kind of warning.
| Variable | Purpose |
|---|---|
--loquix-conf-low-bg |
Background color. |
--loquix-conf-low-color |
Foreground color. |
--loquix-conf-low-fill |
Border accent color. |