BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/solanaui/nft-card

NFT Card

solanaui/nft-card
FreeComponent

A card for displaying NFT artwork with collection name, token name, and loading skeleton.

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/nft-card.json

Source

src/registry/sol/nft-card.tsxwww.solanaui.dev/r/nft-card.json
1"use client";
2
3import React from "react";
4import {
5 Card,
6 CardContent,
7 CardDescription,
8 CardFooter,
9 CardHeader,
10 CardTitle,
11} from "@/components/ui/card";
12import { Skeleton } from "@/components/ui/skeleton";
13import { cn } from "@/lib/utils";
14
15interface NFTCardProps extends React.ComponentProps<typeof Card> {
16 name: string;
17 image: string;
18 collection?: string;
19 price?: string;
20 currency?: string;
21}
22
23const NFTCard = ({
24 name,
25 image,
26 collection,
27 price,
28 currency = "SOL",
29 className,
30 ...props
31}: NFTCardProps) => {
32 const [status, setStatus] = React.useState<"loading" | "loaded" | "error">(
33 "loading",
34 );
35
36 return (
37 <Card
38 className={cn("w-full max-w-xs py-0 gap-0 overflow-hidden", className)}
39 {...props}
40 >
41 <CardContent className="p-0">
42 <div className="relative aspect-square w-full bg-muted overflow-hidden">
43 {status === "loading" && (
44 <Skeleton className="absolute inset-0 rounded-none" />
45 )}
46 {status === "error" ? (
47 <div className="absolute inset-0 flex items-center justify-center bg-muted text-muted-foreground text-sm">
48 Failed to load
49 </div>
50 ) : (
51 <img
52 src={image}
53 alt={name}
54 className={cn(
55 "absolute inset-0 w-full h-full object-cover",
56 status === "loading" && "opacity-0",
57 )}
58 onLoad={() => setStatus("loaded")}
59 onError={() => setStatus("error")}
60 />
61 )}
62 </div>
63 </CardContent>
64 <CardHeader className="bg-muted/50 py-3 px-4 border-t">
65 {collection && (
66 <CardDescription className="text-xs text-muted-foreground">
67 {collection}
68 </CardDescription>
69 )}
70 <CardTitle className="text-base font-medium">{name}</CardTitle>
71 </CardHeader>
72 {price && (
73 <CardFooter className="bg-muted/50 px-4 pb-3 pt-0">
74 <span className="text-sm font-medium">
75 {price} {currency}
76 </span>
77 </CardFooter>
78 )}
79 </Card>
80 );
81};
82
83export type { NFTCardProps };
84export { NFTCard };

What it pulls in

Other registry items

  • card
  • skeleton

Files it writes

  • src/registry/sol/nft-card.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-13
Last confirmed
today

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
Order Bookorder-booksolanauiComponentsFreeno deps
Order Formorder-formsolanauiComponentsFree1 dep

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