Components
Every 0xui component, grouped by what it is for.
Wallet
Connect, show the account, sign.
- Wallet Buttonwallet-buttonOne button for the whole wallet lifecycle. Connect, restore, account.
- Connect Walletconnect-walletWallet picker with recent and installed badges, per-wallet pending state and cancel handling.
- AccountaccountConnected-account button with a panel for balance, copy, explorer link, account switching and disconnect.
- Sign Messagesign-messageAsks the wallet to sign a message or typed data, with labeled steps and optional verification.
Network
Pick a chain, guard against the wrong one, show its pulse.
- Chain Selectorchain-selectorNetwork switcher with chain icons, active-chain indicator, per-row pending state and inline errors.
- Network Guardnetwork-guardShows a "Switch to <chain>" notice when the wallet is on a network the content doesn't support.
- Chain Badgechain-badgeStatic chain chip with icon and name.
- Block Numberblock-numberLive block indicator that doubles as an RPC health check.
- Gas Pricegas-priceCurrent gas price in gwei, optionally colored low, medium or high.
Identity
Addresses, ENS names and avatars.
- AddressaddressENS name or checksummed, truncated address, with copy and explorer link.
- Address Inputaddress-inputRecipient field that takes an address or ENS name, resolves names, and catches checksum typos.
- Address Avataraddress-avatarENS avatar, or a deterministic gradient for any address.
- ENS Profileens-profileProfile card for an ENS name or address. Avatar, name, bio and links.
- Explorer Linkexplorer-linkLink to an address, transaction or block on the chain's block explorer.
Tokens
Balances, amounts and token pickers.
- Token Inputtoken-inputThe swap panel. Amount, token picker, fiat value, balance with Max, insufficient-balance state.
- Token Selecttoken-selectSearchable token picker with recent and popular tokens and the user's balances.
- Amount Inputamount-inputLarge decimal input for token amounts. String state, decimal clamping, lenient paste, Max.
- BalancebalanceNative or ERC-20 balance for the connected account or any address.
- Token Amounttoken-amountFormats bigint token amounts without losing precision.
- Token Icontoken-iconToken logo with fallbacks and an optional chain badge.
- Add Tokenadd-tokenButton that asks the wallet to track a token, e.g. "Add USDC to wallet".
- NFT Cardnft-cardImage, name and collection for an ERC-721 or ERC-1155 token, from its on-chain metadata.
Transactions
Send, approve, track and read contracts.
- Transaction Buttontransaction-buttonSends a transaction and shows every step on the button. Connect, switch network, confirm, pending, done.
- Approve Buttonapprove-buttonERC-20 approval gate. Shows "Approve" until the allowance covers the amount, then your action.
- Batch Transactionbatch-transactionSeveral calls as one action. One wallet prompt with EIP-5792, step by step otherwise.
- Transaction Statustransaction-statusInline card that follows a transaction from submitted to confirmed.
- Transaction Toasttransaction-toastFollow a transaction in a toast, from pending to confirmed or reverted.
- Transaction Historytransaction-historyTransactions sent from your app, with live status. Stored in the browser.
- Contract Formcontract-formRead and write forms for any contract, generated from its ABI.
- Event Feedevent-feedLive list of a contract's events, newest first, each linked to its transaction.
Utilities
Small pieces the other components are built from, and tools for browser agents.
- Copy Buttoncopy-buttonIcon button that copies a value and confirms with a checkmark.
- Responsive Dialogresponsive-dialogA dialog that becomes a bottom drawer on small screens.
- Morph Textmorph-textText that morphs from the old value to the new one when it changes.
- Agent Toolsagent-toolsWebMCP tools that let browser agents read the wallet, its balances and chains, without clicking through your app.
