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*stringCurrency code (e.g., BTC, NGN, USD)
type'crypto' | 'fiat'Currency type for icon lookup
variantstringDisplay variant
sizestringIcon size
altstringAlt text for the icon
isCustomWalletbooleanfalseUse custom wallet icon set