Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

FDMediagroep/fd-ts-react-saved-articles

Repository files navigation

DEPRECATED ❗ : Superseded by @fdmg/design-system. See: https://github.com/FDMediagroep/fd-design-system

Build Status Coverage Status npm version

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