onchain-ui
Copy-paste web3 UI components for shadcn apps.
onchain-ui is an open source for product teams building onchain interfaces: wallet identity, token displays, chain context, balances, market values, and portfolio rows. Components install into your app as source code — inspect them, restyle them, and wire them into your own data layer.
Docs, live examples, and recipes:
Install
Add any component with the shadcn CLI:
Or configure the registry namespace once in your components.json:
Components
See for composed surfaces (portfolio card, wallet header, pool positions) and for wiring components to wagmi, TanStack Query, and TanStack Table.
Use with AI assistants
The registry is MCP-compatible — its index is served at , so assistants like Claude Code and Cursor can browse and install components through the . Items can also be opened directly in v0 from each docs page.
Why
Most crypto apps rebuild the same UI pieces: truncated addresses, ENS/Base name display, token icons, network badges, token amounts, price changes, and portfolio rows.
onchain-ui packages those patterns as shadcn registry items so the code lands inside your app — no wrapper library, no lock-in. Components are EVM-first and built on the same viem primitives as wagmi.
Status
Early and actively developed. The focus is a small, useful registry of composable primitives rather than a broad component library. Registry URLs (/r/{name}.json) are stable; component APIs may still evolve between minor versions while the project is pre-1.0.
Local Development
Project Structure
registry.json and registry/generated/ are build artifacts — edit registry/meta/ and the source components, then run npm run registry:build.
Contributing
Issues and pull requests are welcome. The best contributions are small, practical components that solve repeated onchain product UI needs while staying easy to copy, inspect, and customize.
Author
Created and maintained by .