@finastra/account-card
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

Account Card

Account Card is a use case of card using the Accounts and Balances APIs.

This component is based on base-card. See fds-card documentation for more details.

See it on NPM! How big is this package in your project? Storybook

Usage

Import

npm i @finastra/account-card
import '@finastra/account-card';
...
<fds-account-card name="France" balance="50000" currency="EUR" number="DE89 3704 0044 0532 0130 00"></fds-account-card>

API

Properties

Property Attribute Type Default Description
balance balance number 0 Account balance.
currency currency string "USD" Account currency ISO format.
disabled disabled boolean false Disabled style of the card.
icon icon string "credit_card" Change card icon.
iconAriaLabel iconAriaLabel boolean "Credit Card" Change the card icon aria label.
name name string "Account" Account Name.
number number string "XXXX XXXX XXXX XXXX XXXX XX" Account number.
outlined outlined boolean false Change the card style to outlined, default style is elevated.
selectable selectable boolean false Change the card style to an action card.

Methods

Method Type
renderBalance (): string
renderCardContent (): TemplateResult<1>

Package Sidebar

Install

npm i @finastra/account-card

Weekly Downloads

1

Version

1.8.1

License

MIT

Unpacked Size

56 kB

Total Files

17

Last publish

Collaborators

  • david.bocle
  • ffdcbot
  • ttalbot