Skip to main content

Build Components

Now let’s build the UI components that use our hooks.

1. USDC Section

Create src/components/usdc-section.tsx:

2. NFT Mint Section

Create src/components/nft-mint-section.tsx:
Create src/components/nft-gallery.tsx:

4. Update App

Update src/app.tsx to use all components:

Install Lucide Icons

Final Project Structure

Test the App

  1. Run npm run dev
  2. Connect your wallet
  3. Mint some USDC tokens
  4. Mint an NFT with USDC
  5. See your NFT in the gallery
Congratulations! You’ve built a complete NFT minting dApp on Sui!