article-card
v1.0.17arrow_drop_downv1.0.17
v1.0.16
v1.0.15
v1.0.14
v1.0.13
v1.0.12
v1.0.11
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.0
STATUS
Passing
DOWNLOADS
487
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
22 KB
Article Card component
1 contributor
Like
Install article-card as a package?
Copied
npm i @bit/dennisdigital.components.molecules.article-card
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
ArticleCard ()
Article Card component
Properties
Name | Type | Default value |
---|---|---|
image | string | '' |
author | string | '' |
category | string | '' |
date | string | '' |
title | string | '' |
excerpt | string | '' |
layout | string | 'left' |
rating | number | undefined |
extraClassNames | {} | {} |
context | {} | {} |
Test Summary
should render without any props | Pass |
should render with Image component | Pass |
should render with no image props | Pass |
should render with author props | Pass |
should render with no author props | Pass |
should render with category props | Pass |
should render with no category props | Pass |
should render with date props | Pass |
should render with no date props | Pass |
should render with title props | Pass |
should render with no title props | Pass |
should render with excerpt props | Pass |
should render with no excerpt props | Pass |
should render with layout props | Pass |
should render with rating props | Pass |
check extraClassNames props type | Pass |
checks css_prefix when default | Pass |