The panel behind Cross-check in the status line: two checks, Fact check and Challenge, each Off, When it matters or Always.
Each check says what it does and how long it takes, and "When it matters" is defined in a sentence under them: answers a person will rely on or pass on, never quick questions or drafts. A safeguard whose trigger is vague gets switched off the first time it fires on something trivial.
The checkers are named in every result, so the setting never has to promise more than it does. CrossCheckSetting.value(checks) gives the status line's word for a value: the shared level, "On", "1 of 2 on" or "Off".
import { CrossCheckSetting } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
value |
CrossCheckValue |
|
defaultValue |
CrossCheckValue |
|
onChange |
(value: CrossCheckValue, changed: string) => void |
|
checks |
CrossCheckDefinition[] |
|
levels |
Array<{ value: string; label: string }> |
|
title |
React.ReactNode |
|
lede |
React.ReactNode | false |
false hides the explanation. |
whenItMatters |
React.ReactNode | false |
What When it matters means, under the checks. false hides it. |
foot |
React.ReactNode |
|
compact |
boolean |
Tightens the panel for a composer popover: tighter rows and a smaller lede and note. |
slotClassName |
{ lede?: string; note?: string; foot?: string } |
Class names added to the panel's parts, so a consumer restyles one without overriding the whole panel. |
className |
string |