Skip to content

Amount Option Tile


import '@sbddesign/bui-ui/amount-option-tile.js'
<bui-amount-option-tile
primary-amount="100"
secondary-amount="0.10"
secondary-symbol="$"
bitcoin-first="true"
emoji="🙏"
message="Thank you"
></bui-amount-option-tile>

All properties and attributes are reflected.

PropertyAttributeTypeRequiredDescription
emojiemojistringNoEmoji to display on the tile
messagemessagestringNoMessage text to display
showEmojishow-emojibooleanNoWhether to show the emoji
showMessageshow-messagebooleanNoWhether to show the message
showSecondaryCurrencyshow-secondary-currencybooleanNoWhether to show secondary currency
bitcoinFirstbitcoin-firstbooleanNoDisplay Bitcoin amount first
customcustombooleanNoWhether this is a custom amount
amountDefinedamount-definedbooleanNoWhether amount is defined
selectedselectedbooleanNoWhether the tile is selected
primaryAmountprimary-amountnumberNoPrimary amount value
primarySymbolprimary-symbolstringNoSymbol for primary currency
secondaryAmountsecondary-amountnumberNoSecondary amount value
secondarySymbolsecondary-symbolstringNoSymbol for secondary currency
showEstimateshow-estimatebooleanNoWhether to show estimate text
primaryTextSizeprimary-text-sizestringNoSize of primary text (base, lg, xl, etc.)
secondaryTextSizesecondary-text-sizestringNoSize of secondary text (base, lg, xl, etc.)

The component emits a click event with the following detail structure:

interface AmountTileClickDetail {
emoji: string;
message: string;
primaryAmount: number;
primarySymbol: string;
secondaryAmount: number;
secondarySymbol: string;
custom: boolean;
selected: boolean;
}