Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

compat-card

NPM version

readme

compat-card

NPM version

Usage

Here is a quick example to get you started, it's all you need:

import React from 'react';
...
import CompatCard from 'compat-card';

function App() {
  return (
    <CompatCard />
  );
}

Props

{
  id: string, //required
  title: string, //required
  image: string,
  subtitle: string,
  headerText: string,
  contentTitle: string,
  contentText: string,
  primaryText: string,
  secondaryText: string,
  headerButton: node,
  footerButtonLabel: string,
  footerIcon: node,
  footerStatus: {
    status: string,
    text: string
  },
  onSelect: func,
  onFooterButtonClick: func,
  onHeaderButtonClick: func
}