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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| size | "default""lg""sm""xl""xs" | "default" | |
| asset | — | The asset to draw: its kind picks a flag, a token mark, a logo, or letters. | |
| children | ReactNode | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
AssetIconFallback
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| children | ReactNode | — | The text. Default: the letters of the code (? for an asset that is not listed). |
From Base UIAvatar.FallbackBase UI docs | |||
| delay | number | 0 | How 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>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The badge content. Default: the network mark. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
Built with
Installs with Asset Icon
- Components
- Avatar,Country Flag



