1.1.2 • Published 3 years ago

awesome-cards v1.1.2

Weekly downloads
40
License
MIT
Repository
github
Last release
3 years ago

awesome-cards

Everyone needs a card for their project

NPM JavaScript Style Guide

Install

npm install --save awesome-cards

Usage

import React, { Component } from 'react'

import { AwesomeCard } from 'awesome-cards'
import 'awesome-cards/dist/index.css'

export const MyComponent = () => {
  const props = {
    /* see props section below */
  }

  return <AwesomeCard {...props} />
}

Props

PropDefault ValueTypeDescription
avatarBackgroundColor"#F5F5F5"stringAvatar background color
avatarImagefalsebooleanIf true, the top image is rounded and centered
buttonBackgroundColor"red"stringButton color
buttonTextColor"white"stringButton text color
cardHeight"500px"stringCard height
cardWidth"400px"stringCard width
iconColor"red"stringChange the icon color
informationIconfalsebooleanInformation icon
mainButtonDisabledfalsebooleanWhether or not to disable the button
mainButtonFuncundefinedfunctionCallback function for the button
mainButtonLinearfalsebooleanWhether or not to show the linear progress
mainButtonSpinnerfalsebooleanWhether or not to show the spinner
mainButtonText""stringButton text
subTitle""stringCard subtitle
text""stringCard text
title""stringCard title
tooltipText""stringFor a tooltip or information icon
topImageSrcundefinedstringCard top image

License

MIT © rubenperezf

Reviewed by

rpeace

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago