Skip to content

CurrencyIcon ​

Displays crypto or fiat currency icons with automatic fallback display.

Open in Storybook

Interactive Demo ​

Sizes ​

Size variants

Usage ​

vue
<script setup>
import { CurrencyIcon } from '@yellowcard/b2b-design-system';
</script>

<template>
  <CurrencyIcon currency="BTC" type="crypto" size="large" />
  <CurrencyIcon currency="NGN" type="fiat" size="medium" />
</template>

API Reference ​

Props ​

PropTypeDefaultDescription
currency*string—Currency code (e.g., BTC, NGN, USD)
type'crypto' | 'fiat'—Currency type for icon lookup
variantstring—Display variant
sizestring—Icon size
altstring—Alt text for the icon
isCustomWalletbooleanfalseUse custom wallet icon set