/react-simple-card

React simple card component

Primary LanguageJavaScriptMIT LicenseMIT

React Simple Card

Build Status Coverage Status

Simple, easy to use and flexible cards in React.

Table of Contents

Installation

npm install --save react-simple-card

Usage

The simplest example

import React from "react";
import { render } from "react-dom";
import { Card, CardHeader, CardBody, CardFooter } from "react-simple-card";

const App = () => (
  <Card>
    <CardHeader>Header</CardHeader>
    <CardBody>Body</CardBody>
    <CardFooter>Footer</CardFooter>
  </Card>
);

render(<App />, document.getElementById("root"));

Examples

All examples can be found in this issue or in /examples folder.

Development

  • npm run setup - Install all npm and flow-typed packages
  • npm test - Run all tests (Jest)
  • npm run flow - Run static type checker (Flow)

Contributing

Please check CONTRIBUTING.md to get started.

License

MIT License

Copyright (c) 2017 Edvins Antonovs