CardList component for StickyBoard
$ npm start
$ npm run build
import React from 'react';
import { CardList } from '@stickyboard/card-list';
const cardListData = [
{
title: "My first card",
description: 'This is my first card item!',
author: 'taenykim',
date: new Date().toISOString(),
comment: 1,
heart: 1,
view: 10,
share: 3,
badgeText: 'N',
badgeColor: '#fb4444',
},
{
title: "My second card",
description: 'This is my second card item!',
author: 'soaple',
date: new Date().toISOString(),
comment: 1,
heart: 1,
view: 10,
share: 3,
badgeText: 'N',
badgeColor: '#fb4444',
},
...
];
function SampleCardList(props) {
return (
<CardList
data={cardListData}
title={'Sample CardList'}
default={5}
offset={5}
/>
);
}
This project is licenced under the MIT License.