Starter template to build custom UI components with thirdweb and NextUI v2.
1. Clone the template or fork
git clone https://github.com/thirdweb-example/thirdweb-nextui-org-starter.git
Create a file called .env.local
(at the root level of your project) with the following content:
NEXT_PUBLIC_TEMPLATE_CLIENT_ID="<your-thirdweb-client-id"
To learn how to create a client ID, refer to the client documentation.
# npm
npm install
# yarn
yarn
# pnpm
pnpm install
Start development server
yarn dev
Create a production build
yarn build
Preview the production build
yarn start
-
Custom thirdweb Connect button built with NextUI Button
-
thirdweb Bobbie Component to generate gradiant based on wallet address
-
useConnectModal
hook that allows you to open the Connect UI in a Modal to prompt the user to connect wallet. -
useWalletDetailsModal
hook to open the Wallet Details Modal that shows various information about the connected wallet and allows users to perform various actions like sending funds, receiving funds, switching networks, Buying tokens, etc.
Custom component found in components/navbar.tsx
For help or feedback, please visit our support site