Need private packages and team management tools?Check out npm Teams »

ta-react-article-teasers

1.0.1 • Public • Published

Article Teasers

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

Version: 1.0

module.exports ⇐ React.PureComponent

Kind: Exported class
Extends: React.PureComponent

new module.exports()

Param Type Default Description
props.articleIds Array.<string> An array of CD article IDs, as strings.
[props.numberOfCards] string "two" How many article teaser should be shown in a row on desktop devices. As a number word. ('one', 'two', 'three', etc.)
[props.additionalClasses=] string Additional 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"]}/>
    )
  }
}
 

Install

npm i ta-react-article-teasers

DownloadsWeekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • avatar