Introduction
Guides
Components
- Appchain
- Buy
- Checkout
- Earn
- Fund
- Identity
- Mint
- <Signature />
- Swap
- Token
- <Transaction />
- Wallet
API
- Mint
- Swap
- Token
- Wallet
Utilities
- Config
- Earn
- Fund
- Identity
- Mint
- Token
- Wallet
Contribution
Token
`<TokenRow />`
The TokenRow
component displays token information in a row format to be used in list components.
Usage
Token with an image url
Copy
Ask AI
// @noErrors: 1109 - Expression expected
import { TokenRow } from '@coinbase/onchainkit/token';
const token = { ... };
<TokenRow token={token} />;
Token without an image url
Copy
Ask AI
// @noErrors: 1109 - Expression expected
import { TokenRow } from '@coinbase/onchainkit/token';
const token = { ... };
<TokenRow token={token} />;
Token with an amount
Copy
Ask AI
// @noErrors: 1109 - Expression expected
import { TokenRow } from '@coinbase/onchainkit/token';
const token = { ... };
<TokenRow token={token} amount="1000" />;
<TokenRow token={token} amount="0.00234567" />;
Variations with hideImage
and hideSymbol
Copy
Ask AI
// @noErrors: 1109 - Expression expected
import { TokenRow } from '@coinbase/onchainkit/token';
const token = { ... };
<TokenRow token={token} hideSymbol />;
<TokenRow token={token} hideImage />;
<TokenRow token={token} hideSymbol hideImage />;
Props
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.