‹ components

NetworkBadge

stablev1.0.0·open in canvas

Chain indicator -- always show the network (ethereum.org heuristic #3). Neutral: chains are facts, not states.

Installnpx shadcn add @cids/network-badge
Live demo
SolanaBase

Motion · tap to replay

honors reduced-motion

None.

This component declares no motion.

Brand chip remounts on tap · highlighted tokens are named in this component's doc · spring is budgeted to human feedback only.

import { NetworkBadge } from "@/design-system";

<NetworkBadge name="Solana" iconSrc="https://cdn.defitriangle.xyz/logos/network/solana/32.png" />

Tokens · live

Resolves in the active theme — flip the toggle above to verify.

States · from doc

Parsed from the doc. Interact with the live demo for hover/active.

Static; with/without icon.

Chain indicator -- always show the network (ethereum.org heuristic #3). Neutral: chains are facts, not states.

Anatomy

( o Solana )  <- icon (or dot) + name, container-high tint

Props

PropTypeDefaultNotes
namestring--Chain name.
iconSrcstring--e.g. Logobase network/<slug>; falls back to a dot.
classNamestring--cn-merged.

Motion

None.

A11y

Self-contained: copy the folder into any Tailwind+React app, or use the install command above. Docs and this page render the same file on disk — they cannot drift.