@mats_/react-rate-card
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

A Simple Rate Card

  • Currency Converted are USD/XLM to TZS, KES, RWF.

Installation

Install using npm install @mats_/react-rate-card

Usage

In a React app, use the Rate Card Component as follows:

import { RateCard } from '@mats_/react-rate-card'

[Card Styling Props]

Name Description

cardBackgroundColor hex | rgba() | name

cardSpacing {number} -> renders as pixels

cardFontStyle 'String' -> example 'Ubuntu'

cardGradient 'boolean' -> if true, then also specify below props

gradientType 'linear-gradient' (only supports linear-gradient for now)

gradientDirection 'left | right | bottom-left | bottom-right | top-left | top-right '

gradientColorOne 'hex | rgba() | name'

gradientColorTwo 'hex | rgba() | name'

Package Sidebar

Install

npm i @mats_/react-rate-card

Weekly Downloads

2

Version

0.1.0

License

none

Unpacked Size

18.4 kB

Total Files

7

Last publish

Collaborators

  • mats_