Skip to content

Asset Icon

Free

Shows the mark of an asset: a flag for a currency, a logo for a coin or token with its network, or letters when there is no logo.

  • React 19
  • Tailwind CSS 4

Added Nov 12, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Place the picture, the letters fallback, and the network badge in the icon; the letters show while the logo loads or when it fails.

token-row.tsx

AssetIcon

<div>
PropTypeDefaultDescription
classNamestring—
size"default""lg""sm""xl""xs""default"
assetRequired—The asset to draw: its kind picks a flag, a token mark, a logo, or letters.
childrenReactNode—The parts. Default: the picture, the letters fallback, and the network badge.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

AssetIconImage

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

AssetIconFallback

<span>
PropTypeDefaultDescription
classNamestring—
childrenReactNode—The text. Default: the letters of the code (? for an asset that is not listed).
From Base UIAvatar.FallbackBase UI docs
delaynumber0How long to wait before showing the fallback. Specified in milliseconds.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

AssetIconNetwork

<span>
PropTypeDefaultDescription
childrenReactNode—The badge content. Default: the network mark.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use it next to an asset code in a list, a picker, a field, or a receipt.
  • Give country for money, logoUrl or logo for a token, and network for its badge.
  • Set listed: false on a token found by address, so it shows a dashed warning edge.

Built with

Installs with Asset Icon

  1. AddedAsset Icon, with Avatar, Country Flag.
Open the release