AI Components / Capture Flow
Capture Flow
Multi-step capture: upload → preview → process → result.
ai-essentials v0.5.0
Playground
Examples
Upload step
<ai-capture-flow step="upload" title="Scan Receipt" accept=".jpg,.png,.pdf" style="max-width:400px;"></ai-capture-flow> Import
import { AiCaptureFlow } from '@cognivo/components'; // Or tree-shake: import '@cognivo/components/ai-capture-flow'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
step | "upload"|"preview"|"processing"|"complete"|"error" | "upload" | Current step |
progress | number | — | Processing progress 0-100 |
Events
| Event | Detail | Description |
|---|---|---|
ai-capture-file | {file} | File selected |