3.7.0 • Published 2 years ago

@propellerads/kyc-form v3.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

KycForm

KycForm.

size npm.io

NPM | Github

Installation

  • yarn add @propellerads/kyc-form or npm install @propellerads/kyc-form -S

How to use

  • import KycForm 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={
        [DOCUMENT_TYPES.CARD]: {
            title: 'Photo of the account owner’s ID card.',
            description: '(Passport/driver’s license/aadhar card etc.)',
        }
    }
    documents={[{
        type: DOCUMENT_TYPES.ID,
        parts:[{
            type: PART_TYPES.ID_FRONT,
        }, {
            type: PART_TYPES.ID_BACK,
        }],
    }]}
    onUploadClick={console.log}
/>