Field comparison component for displaying a comparison between two fields.
Configuration object
Array of fields to compare
Basic usage with two fields
fieldComparison({ fields: [ { field1: { label: 'Document', value: '2024-10-09', }, field2: { label: 'System', validationMessage: 'Missing value', value: '', }, name: 'Effective Date', ocrScore: 64, result: 'error', resultMessage: 'Not Matching', }, ],}); Copy
fieldComparison({ fields: [ { field1: { label: 'Document', value: '2024-10-09', }, field2: { label: 'System', validationMessage: 'Missing value', value: '', }, name: 'Effective Date', ocrScore: 64, result: 'error', resultMessage: 'Not Matching', }, ],});
Field comparison component for displaying a comparison between two fields.