0.0.4 • Published 6 years ago

react-flip-cards v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

📋 React flip card

A lightweight React component flip card.

Demo

bundlephobia badge bundlephobia badge bundlephobia badge

npm i react-flip-cards

Usage

import FlipCard from "react-flip-cards";
import '../node_modules/react-flip-cards/build/index.css'; // required

<FlipCard img={imgLink} // all props
  fontTitle="ReactJs"
  fontSubTitle="web application"
  backTitle="ReactJs app"
  backText="Lorem Ipsum is simply dummy text of the printing"
  fgColor="#ff0000" // front card background color
  bgColor="#ff0000" // back card background color
/>

Examples :

const App = () => {

  return (
    <div className="container">
      <div className="col-3">
        <FlipCard img={imgLink} // without children
          fontTitle="ReactJs"
          fontSubTitle="web application"
          backTitle="ReactJs app"
          backText="Lorem Ipsum is simply dummy text"
        />
      </div>

      <div className="col-3">
        <FlipCard // with children
          fontTitle="Svelte"
          fontSubTitle="web application"
          backTitle="Svelte app"
          backText="Lorem Ipsum is simply dummy text"
          fgColor="red"
          bgColor="red"
        >
          <a href="https://github.com/haikelfazzani">Link</a>
        </FlipCard>
      </div>
    </div>
  );
}

License

MIT

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago