Components
React components you can drop into your web app with 1 line of code.
CometProvider
API
Prop
Type
Description
Example
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './index.css';
import { CometProvider } from '@comet-labs/react';
const cometProviderConfig = {
publishableKey: '<PUBLISHABLE KEY>',
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<CometProvider config={cometProviderConfig}>
<App />
</CometProvider>
</React.StrictMode>
);LoginButton
API
Example


showFullWallet is set to true in the CometProvider component.MintButton
API
Prop
Type
Description
Example

MintButton displays the price and items remaining in the collection.
MintButton will redirect the user to a credit card payment form.Last updated