SignatureQR
Signature QR
Basic Usage
import { SignatureQR, SignatureResultType } from 'zigap-utils';
const App = () => {
const [result, setResult] = useState<SignatureResultType | null>(null);
return (
<div>
<SignatureQR
dapp='My Awesome Dapp'
url='https://myapp.com'
availableNetworks={['v2xphere', 'v3xphere']}
sigMessage='I agree to the terms and conditions'
validSeconds={600}
onReceive={({ status, result }) => {
if (status === 'SUCCESS') {
console.log('Signature successful!', result);
setResult(result as SignatureResultType);
}
}}
/>
</div>
);
};Props
Prop
Type
Required
Default
Description
Supported Networks
Status Values
Type
Description
SignatureResultType
Common Style Props
Props
Prop
Type
Default
Description
Example
Processing Mark Options
Options
Type
Description
Custom Component Example
Expire Configuration
Example
Last updated