Components
React components you can drop into your web app with 1 line of code.
Last updated
React components you can drop into your web app with 1 line of code.
Last updated
In order for the other components and hooks to work properly within your React application, you need to wrap your component tree with the CometProvider
component. Doing so is simple; all you'll need is your Comet Publishable Key, obtainable at .
It is important that you add CometProvider
to your app, otherwise other components and hooks will not work properly!
publishableKey
string
Required. Your Comet Publishable Key.
showFullWallet
boolean
If true
(default), users will see a full Comet wallet + gallery when they log in. Otherwise, they'll see a minimal UI.
A button that lets a user log in or sign up to Comet. When logged in, it shows the user's username and profile picture.
No props are required for LoginButton
.
A drop-in button that lets users mint an NFT that's been launched with Comet.
collectionId
string
Required. The ID of the Comet collection that can be minted with this MintButton
.
showFullWallet
is set to true
in the CometProvider
component.MintButton
displays the price and items remaining in the collection.MintButton
will redirect the user to a credit card payment form.