U.S. flagA digital services project by Flexion

Confidence Badge

feedbackCustom

Compact badge flagging extracted fields that need review. Stays hidden for high-confidence values and surfaces "Review" or "Low confidence" otherwise.

Custom component — no upstream reference.

Variants

High Confidence

Low Confidence

Low confidence

Needs Review

Review

With Flags

Low confidence

Contract

Documented variants

  • HighConfidence — Confidence at or above the high threshold (0.8): renders nothing, no DOM output.
  • NeedsReview — Confidence between the medium threshold (0.5) and high threshold (0.8): shows a "Review" badge.
  • LowConfidence — Confidence below the medium threshold (0.5): shows a "Low confidence" badge.
  • WithFlags — Low confidence badge with explicit extraction flags surfaced in the tooltip title attribute.

Behavior promises

  • ○ Component renders null (no DOM output) when confidence meets or exceeds the high threshold
  • ○ Tooltip title attribute surfaces extraction flags when provided, otherwise shows the numeric confidence percentage

Source CSS