nyuchimzizi
Mzizi — an open-architecture project of the Bundu Foundation, operated and developed by Nyuchi. Built on the Five African Minerals palette.
Built by Nyuchi Africav4.0.39
Crypto token display row with symbol, balance, and optional fiat value. Extracted from wallet-page.
No interactive demo is registered for this component yet — the source is shown directly.
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
interface TokenRowProps {
symbol: string
name?: string
icon?: React.ReactNode
balance: number
value?: number
valueCurrency?: string
change?: number
onClick?: () => void
className?: string
}
export function TokenRow({ symbol, name, icon, balance, value, valueCurrency = "USD", change, onClick, className }: TokenRowProps) {
const Comp = onClick ? "button" : "div"
return (
<Comp data-slot="token-row" data-portal="https://design.nyuchi.com/components/token-row" onClick={onClick}
className={cn("flex w-full items-center justify-between px-4 py-3 text-left", onClick && "transition-colors hover:bg-muted cursor-pointer", className)}>
<div className="flex items-center gap-3 min-w-0">
{icon && <div className="size-8 shrink-0 rounded-full bg-muted flex items-center justify-center overflow-hidden">{icon}</div>}
<div className="min-w-0"><p className="text-sm font-medium">{symbol}</p>{name && <p className="text-xs text-muted-foreground truncate">{name}</p>}</div>
</div>
<div className="text-right shrink-0">
<p className="text-sm font-medium tabular-nums">{balance.toLocaleString()}</p>
{value != null && <p className="text-xs text-muted-foreground tabular-nums">{new Intl.NumberFormat(undefined, { style: "currency", currency: valueCurrency }).format(value)}</p>}
{change != null && <p className={cn("text-xs tabular-nums", change >= 0 ? "text-[var(--status-success,#64FFDA)]" : "text-[var(--status-error,#FF5252)]")}>{change >= 0 ? "+" : ""}{change.toFixed(1)}%</p>}
</div>
</Comp>
)
}
export type { TokenRowProps }The variants, sizes, and props surfaced by the registry. Each is sourced from the Supabase component_docs table.
Hit the registry API live and see the JSON the shadcn CLI consumes when it installs this component.
/api/v1/ui/token-rownpx shadcn@latest add https://mzizi.dev/api/v1/ui/token-row