@propellerads/kyc-form
v5.0.0
Published
`KycForm`.
Keywords
Readme
KycForm
KycForm.
Installation
yarn add @propellerads/kyc-formornpm install @propellerads/kyc-form -S
How to use
import KYCForm, {DocumentType, PartType} from '@propellerads/kyc-form';- And render
<KYCForm
elementId="kyc-form-component"
title="PropellerAds is integrating KYC systems into the business processes. To continue working we kindly ask you to provide the following documents:"
uploadButtonLabel="Send documents"
uploaderLabels={{
title: 'Drag the file here or',
action: 'upload from your computer',
oversizeError: 'File is too big',
}}
documentsLabels={{
[DocumentType.Card]: {
title: 'Photo of the account owner’s ID card.',
description: '(Passport/driver’s license/aadhar card etc.)',
}
}}
documents={[{
type: DocumentType.Id,
parts:[{
type: PartType.IdFront,
}, {
type: PartType.IdBack,
}],
}]}
onUploadClick={console.log}
/>