Components
Suggestion
A form field with an AI suggestion shown as ghost text, with accept/reject controls and a confidence badge. Tracks provenance for compliance — suggested → accepted (AI) → edited by human.
Provenance
Accept the suggestion (Tab), then edit the value to see it flip to "Edited by human".
AI · 95%
Edited by human
API
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | '' | Field label. |
suggestion | string | null | null | AI-suggested value, shown as ghost text. |
confidence | number | — | Confidence 0–1, shown as a percentage badge. |
placeholder | string | '' | Input placeholder text. |
value | string | '' | The field value (two-way, [(value)]). |
accepted | boolean | false | Whether the value came from the AI suggestion (two-way). |