1.0.1 • Published 7 years ago

ta-react-article-teasers v1.0.1

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
7 years ago

Article Teasers

Show a row of article teasers according to a list of article IDs.

Date: 2017-02-22
Version: 1.0
Author: Kaspar Manz kaspar.manz@tages-anzeiger.ch

module.exports ⇐ React.PureComponent

Kind: Exported class
Extends: React.PureComponent

new module.exports()

ParamTypeDefaultDescription
props.articleIdsArray.<string>An array of CD article IDs, as strings.
props.numberOfCardsstring"two"How many article teaser should be shown in a row on desktop devices. As a number word. ('one', 'two', 'three', etc.)
props.additionalClasses=stringAdditional classes to be passed to the cards element. As defined in the Card documentation.

Installation

yarn add ta-react-article-teasers

Usage

import ArticleTeasers from 'ta-react-article-teasers';

// more code ...

class YourComponent extends React.Component {
  render() {

    return (
      <ArticleTeasers
        articleIds={["16008934", "21426105", "17814575"]}/>
    )
  }
}
1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-0

7 years ago