@sprinque/what-is-sprinque
v0.1.2-0
Published
Part of merchant's toolkit to explain what is Sprinque
Downloads
296
Readme
This web component can help you to maximise buyer awareness about Sprinque and optimise checkout experience.
Usage
Quick demo can be found here https://js-sdk-demo.sprinque.com/what-is-sprinque
If any support is needed please ping us on [email protected]
npm
https://www.npmjs.com/package/@sprinque/what-is-sprinque
<button
onClick={() =>
open({
lang: 'nl',
netTermsDays: '30',
targetSelector: '#embed-here',
logo: 'https://your-site/logo.png',
customStyles: '.sprinque-modal {border: 2px solid #189eff;}',
})
}
>
Learn more
</button>
UMD
<!DOCTYPE html>
<html>
<head>
<title>Learn more about Sprinque</title>
<script src="https://unpkg.com/@sprinque/what-is-sprinque/dist/index.umd.min.js" crossorigin></script>
</head>
<body>
<button id="button">Open</button>
<script>
document.getElementById("button").addEventListener("click", () => {
WhatIsSprinque.open({ lang: 'en' });
});
</script>
</body>
</html>