Token List
A table of tokens and prices with optional user balances.
Token List
Token | Mint | Price | Balance | Value |
---|---|---|---|---|
Installation
Install dependencies
Start by installing required Murphis dependencies
npx shadcn add table
Add Murphy Token Icon
pnpm dlx shadcn@canary add https://www.murphyai.dev/r/token-icon.json
Add Murphy Token List
pnpm dlx shadcn@canary add https://www.murphyai.dev/r/token-list.json
Basic Usage
import {TokenList} from "@/components/ui/murphy/token-list.tsx"
<TokenList assets={assets} showBalances={false} />
Props
Name | Type | Default |
---|---|---|
assets | SolAsset[] | [] |
showBalances | boolean | true |
onClick | (asset: SolAsset) => void |