# ConfidenceNote

A confidence score with what it covers, how it was worked out and when, or nothing at all. Never a bare number.

- **Use it for**: A calibrated confidence score with its scope, method and date.
- **Not for**: Usage numbers. Try [UsageMeter](https://unseenui.com/components/usage-meter/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { ConfidenceNote } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<ConfidenceNote variant="note" score={measured(0.82)} scope="of claims matched a source" method="eval pass rate over 40 runs" />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `at` | `string` |  |
| `locale` | `string` |  |
| `method` (required) | `string` | How the host obtained it, such as "eval pass rate over 40 runs". |
| `scope` (required) | `string` | What the score is about, such as "of claims matched a source". |
| `score` (required) | `Measurement<number>` | A host-supplied calibration in [0, 1]. |
| `variant` | `"note" \| "inline"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[SourceCard](https://unseenui.com/components/source-card/), [Citation](https://unseenui.com/components/citation/), [EvidenceGroup](https://unseenui.com/components/evidence-group/), [GroundingStatus](https://unseenui.com/components/grounding-status/), [Sources](https://unseenui.com/components/sources/), [ProvenanceBadge](https://unseenui.com/components/provenance-badge/)

Page: https://unseenui.com/components/confidence-note/
