1.25.0 • Published 4 years ago
@schibstedspain/sui-card-article v1.25.0
SUI Card Article
SUI CardArticle
component is a card containing a media object, title, description and some editorial information (tag and comments).
Installation
$ npm install --save @schibstedspain/sui-card-article
Usage
import React, { Component } from 'react'
import CardArticle from '@schibstedspain/sui-card-article'
class MyComponent extends Component {
render () {
return (
<div>
<CardArticle
link='http://my-site.com/article/1'
media={{ src: 'http://my-cdn.com/article/1.jpg' }}
tag={{
url: 'http://my-site.com/tags/news',
text: 'News'
}}
comments={{
url: 'http://my-site.com/article/1/comments',
count: 100
}}
title='My article card'
description='Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore voluptatum minus nihil, eum perspiciatis?'
/>
<div>
)
}
}
1.25.0
4 years ago
1.24.0
4 years ago
1.23.0
4 years ago
1.22.0
5 years ago
1.21.0
6 years ago
1.20.0
7 years ago
1.19.0
7 years ago
1.18.0
7 years ago
1.17.0
7 years ago
1.16.0
7 years ago
1.15.0
7 years ago
1.14.0
7 years ago
1.13.0
7 years ago
1.12.0
7 years ago
1.11.0
7 years ago
1.10.0
7 years ago
1.9.0
7 years ago
1.8.0
7 years ago
1.7.0
7 years ago
1.6.0
7 years ago
1.5.0
7 years ago
1.4.0
7 years ago
1.3.0
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago