@redrob-labs/ui v1.8.0 · Redrob Group Design System 2026

CrossCheckSetting

Safeguards · src/components/CrossCheckSetting/CrossCheckSetting.tsx

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

import { CrossCheckSetting } from '@redrob-labs/ui';

Rendered

The design system's own preview case, run against this package's build. The parity gate compares this rendering to the reference bundle's.

Props

PropTypeNotes
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