1.0.1 • Published 4 years ago

static-card v1.0.1

Weekly downloads
12
License
ISC
Repository
-
Last release
4 years ago

Static Card

npm GitHub stars

Twitter Follow

a light-weight React Static Card Component.

npm.io

Installation

npm i static-card

Usage

import StaticCard from 'static-card';
import Img from './test.jpg'

const MyCard = () => {
    <StaticCard
        img={Img}
        category={"ANDROID"}
        summary={"Bringing more people online and introducing Camera Go"}
        dateAndAuthor={"By Arpit Midha & Joris van Mens - Mar 19,2020"}
        onClick={()=>{console.log("Click")}}
        activeBackgroundColor={"#00e5ff"}
    />
}

API

paramdetailtyperequire*
imgcard image which always displayobjecttrue
categorycard category of the detailstringtrue
summarysummary of the cardstringtrue
dateAndAuthorthe detail of this card's creationstringtrue
onClickonClick Event handlerfunctionfalse
activeBackgroundColoractive background color when mouse over itstringtrue