NiftyKit Diamond Widgets are set of Web Components designed to help users create the perfect mint page. It's flexible, and modern browser compatible, ships with the latest WalletConnect 2.0.
🚧 Warning! This repository is still beta. 🚧
This repository is still work-in-progress, API structures are subjected to change. We will keep you posted on breaking changes on our Discord.
The widgets work with any HTML, whether it's loaded in Webflow or Wordpress, as long as you have control over the HTML, you can embed the widget.
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<title>My Mint Page</title>
<script type="module" src="https://sdk.niftykit.com/widgets/widgets.esm.js"></script>
</head>
<body>
<nk-diamond collection-id="clg9wuwjd00019e384ck7vauc">
<nk-connect-wallet-button>
Connect Wallet
</nk-connect-wallet-button>
<nk-is-connected>
<h3>
<nk-drop-supply-text /> Minted
</h3>
<h3>
Mint Price: <nk-drop-price-text />
</h3>
<nk-drop-mint-button success-title="Success!" success-message="You did it!">
Mint NFT
</nk-drop-mint-button>
</nk-is-connected>
</nk-diamond>
</body>
</html>
<nk-diamond />
<nk-connect-wallet-button />
<nk-drop-supply-text />
<nk-drop-price-text />
<nk-drop-mint-button />
<nk-drop-mint-crossmint-button />
<nk-drop-mint-winter-button />
<nk-editon-supply-text />
<nk-edition-price-text />
<nk-edition-mint-button />
<nk-edition-mint-crossmint-button />
<nk-is-connected />
<nk-is-not-connected />
<nk-is-holder />
Add any overrides inside a style
tag in your html head
.
<style>
nk-connect-wallet-button::part(wallet-btn-container) {
margin: 20px auto;
display: block;
}
nk-connect-wallet-button::part(wallet-btn) {
width: 300px;
height: 50px;
background: #553d9d;
}
nk-drop-mint-button::part(mint-btn) {
height: 80px;
background: #553d9d;
border-radius: 40px;
}
nk-drop-mint-button::part(mint-text) {
font-size: 36px;
}
nk-drop-mint-button::part(mint-dropdown-icon) {
width: 32px;
height: 32px;
fill: black;
}
</style>