@fdmg/fd-saved-articles
v2.0.3
Published
FD-themed saved articles
Downloads
3
Readme
fd-saved-articles
FD-themed saved articles.
Installation
- Run
npm i -D @fdmg/fd-saved-articles
Demo
To run the demo, check-out this repository and run npm run build-demo
.
After the build succeeded you can open dist/demo.html
with your webbrowser.
Usage
import SavedArticles from '@fdmg/fd-saved-articles';
...
<SavedArticles
cardStyle="default"
items={[{
id: '1',
dateTime: `11:18`,
label: 'Trump vraagt om politieke samenwerking in State of the Union',
url: 'https://fd.nl/economie-politiek/1288267/trump-vraagt-om-politieke-samenwerking-in-state-of-the-union',
}, {
id: '2',
dateTime: `12:19`,
label: 'Leraren slaan alarm: scholen stoppen met informatica in de bovenbouw',
url: 'https://fd.nl/economie-politiek/1287621/leraren-slaan-alarm-scholen-stoppen-met-informatica-in-de-bovenbouw'
}]}
onDelete={() => {}}
/>