NFT-Checkout-Package HTML version
Insomnia NFT project's React plugin library published by creator's portal.
Built with Lit and TypeScript. Check out the Demo!
Usage
Install the SDK
<!--
You can embed the SDK in <head> tag of your site. Or just before <checkout-widget> code.
-->
<script src="https://unpkg.com/@insomnialab/mintstack-sdk-html@<version>/dist/index.js"></script>
Set up widget
Just add this line
<checkout-widget collectionid="<your_collection_id>" view="<normal | mini>"></checkout-widget>
collectionid: Your collection id view: view mode, either normal or mini(with necessary fields only)
note: Above is sample code and demo purpose. Don't use it straightforward on production. Use it replacing collectionId with your project's id
You can import DetailBox compoent and use directly in your front-end code.
Wix
Usage on sitebuilder likeYou can embed the SDK adding below code snippet to your site wix
<script src="https://unpkg.com/@insomnialab/mintstack-sdk-html@<version>/dist/index.js"></script>
<checkout-widget collectionid="<your_collection_id>" view="<normal | mini>"></checkout-widget>