Skip to content

Bitcoin Value

import '@sbddesign/bui-ui/bitcoin-value.js'
<bui-bitcoin-value amount="1000"></bui-bitcoin-value>
PropertyAttributeTypeRequiredReflectedDescription
formatformatstringNoYesBitcoin format: “sats”, “BTC”, “bip177”
truncatedtruncatedbooleanNoYesWhether to truncate large numbers
amountamountnumberNoYesBitcoin amount in satoshis
symbolPositionsymbol-positionstringNoYesSymbol position: “left”, “right”
satcommasatcommabooleanNoYesWhether to use satcomma formatting
sizesizestringNoYesMoney size: “small”, “default”, “large”, “xlarge”
showEstimateshow-estimatebooleanNoYesWhether to show estimate text
textSizetext-sizestringNoYesText size: “base”, “lg”, “xl”, “2xl”, “3xl”, “4xl”, “5xl”, “6xl”, “7xl”, “8xl”, “9xl”
  • sats - Display in satoshis
  • BTC - Display in Bitcoin (decimal format)
  • bip177 - Display using BIP177 format
  • left - Symbol appears before the amount
  • right - Symbol appears after the amount
  • small - Small money display
  • default - Standard money display
  • large - Large money display
  • xlarge - Extra large money display
  • base - Base text size
  • lg - Large text
  • xl - Extra large text
  • 2xl - 2x large text
  • 3xl - 3x large text
  • 4xl - 4x large text
  • 5xl - 5x large text
  • 6xl - 6x large text
  • 7xl - 7x large text
  • 8xl - 8x large text
  • 9xl - 9x large text
  • Amount Conversion: The component automatically converts between satoshis and Bitcoin based on the format
  • Truncation: When truncated is true, large numbers are shortened (e.g., 1,000,000 → 1M)
  • Satcomma Formatting: When satcomma is true, uses satcomma notation for better readability
  • Symbol Positioning: Controls whether the Bitcoin symbol appears before or after the amount
  • Size Responsiveness: The size property controls the overall visual size of the money display
  • Text Scaling: The textSize property allows fine-grained control over text size

The bitcoin value component does not emit custom events. It behaves as a standard HTML element for displaying Bitcoin amounts.