@fdmg/fd-saved-articles

FD-themed saved articles

Usage no npm install needed!

<script type="module">
  import fdmgFdSavedArticles from 'https://cdn.skypack.dev/@fdmg/fd-saved-articles';
</script>

README

Build Status Coverage Status npm version Greenkeeper badge

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={() => {}}
/>