react-sourceid-verify
v1.2.6
Published
React Source ID Verify: Easily implement a verification button in your React app for secure user verification.
Maintainers
Readme
SourceID Verification Button
This React component allows you to integrate a verification button using the SourceID Verify library. It provides a simple method for users to verify their identity.
Installation
npm install react-sourceid-verify
or
yarn add react-sourceid-verifyUsage
Import the VerifyButton component into your React component:
import VerifyButton from "react-sourceid-verify";Then, you can use the VerifyButton component in your JSX code:
import VerifyButton from "react-sourceid-verify";
<VerifyButton
entityKey="your entity key"
text="verify"
padding="20px"
border="0"
fontSize="20px"
width="200px"
height="auto"
borderRadius="5px"
customStyle={{
marginLeft: "40px",
// Add any additional custom styles here
}}
customModalStyle={{
background: "white",
borderRadius: 20,
boxShadow: "0px 0px 10px rgba(0, 0, 0, 0.1)",
padding: "30px",
// Add any additional custom modal styles here
}}
customInnerElementStyle={{
borderRadius: 10,
color: "blue",
fontWeight: "bold",
// Add any additional custom inner element styles here
}}
/>;Note: When the developer wants to integrate source ID verification, providing an entity key is required.
