@aletheia-dev/collection-flow-ui
v0.2.0
Published
React field inputs, step form and step preview for Aletheia collection flows, for embedding flows in your own site or tools.
Readme
@aletheia-dev/collection-flow-ui
React field inputs and step rendering for Aletheia
collection flows: FieldInput, FileField (direct-to-storage uploads with scanning status),
StepForm and StepPreview. The admin console's live preview of a collection flow renders steps
with these components, so a custom applicant UI built on them matches that preview. The hosted
applicant app, the collection terminal, has field components of its own.
import { StepForm } from '@aletheia-dev/collection-flow-ui';
import '@aletheia-dev/collection-flow-ui/styles.css';
<StepForm step={step} value={data} onChange={(key, value) => setData({ ...data, [key]: value })} />;Peer dependencies: react and react-dom 19. File uploads need a SubmissionScopeContext
provider carrying the API client and the submission id; without one, file fields render
disabled.
