BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/solanaui/token-icon

Token Icon

solanaui/token-icon
FreeComponent

Renders a circular token icon with loading skeleton fallback.

Live preview

live · rendered by the registry
Rendered by solanaui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.solanaui.dev/r/token-icon.json

Source

src/registry/sol/token-icon.tsxwww.solanaui.dev/r/token-icon.json
1"use client";
2
3import React from "react";
4import { Skeleton } from "@/components/ui/skeleton";
5import { cn } from "@/lib/utils";
6
7type TokenIconProps = {
8 src: string;
9 alt?: string;
10 width?: number;
11 height?: number;
12 className?: string;
13};
14
15const TokenIcon = ({
16 alt = "Token",
17 className = "",
18 width,
19 height,
20 ...props
21}: TokenIconProps) => {
22 const [status, setStatus] = React.useState<"loading" | "loaded" | "error">(
23 "loading",
24 );
25
26 if (status === "error") {
27 const fontSize = typeof width === "number" ? width * 0.35 : "1rem";
28 return (
29 <div
30 className={cn(
31 "rounded-full bg-muted inline-flex items-center justify-center font-medium text-muted-foreground",
32 className,
33 )}
34 style={{ width, height, fontSize }}
35 >
36 {alt.charAt(0).toUpperCase()}
37 </div>
38 );
39 }
40
41 return (
42 <div className="relative inline-block" style={{ width, height }}>
43 {status === "loading" && (
44 <Skeleton
45 className={cn("rounded-full absolute inset-0", className)}
46 style={{ width, height }}
47 />
48 )}
49 <img
50 alt={alt}
51 className={cn(
52 "rounded-full block",
53 status === "loading" && "opacity-0",
54 className,
55 )}
56 onLoad={() => setStatus("loaded")}
57 onError={() => setStatus("error")}
58 width={width}
59 height={height}
60 {...props}
61 />
62 </div>
63 );
64};
65
66export type { TokenIconProps };
67export { TokenIcon };

What it pulls in

Other registry items

  • skeleton

Files it writes

  • src/registry/sol/token-icon.tsx

Facts

Registry
solanaui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-10
Last confirmed
yesterday

Go to the source

Docs on solanaui www.solanaui.dev chambaz/solanaui on GitHub Raw registry item This item as JSON

More from solanaui

All 31 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Action Boxaction-boxsolanauiComponentsFreeno deps
Activity Feedactivity-feedsolanauiComponentsFree1 dep
Address Displayaddress-displaysolanauiComponentsFree1 dep
Auth Cardauth-cardsolanauiComponentsFreeno deps
Health Barhealth-barsolanauiComponentsFreeno deps
Leverage Sliderleverage-slidersolanauiComponentsFreeno deps
NFT Cardnft-cardsolanauiComponentsFreeno deps
Order Bookorder-booksolanauiComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex