MediumPosts
Using a Gatsby plugin, this component automatically builds three
ArticleCards
Setup
To update the source account for this component, pass in a
mediumAccount
gatsby-config.js
plugins: [{resolve: 'gatsby-theme-carbon',options: {mediumAccount: 'carbondesign',},},];
Example
Code
<MediumPosts color="dark" postLimit={3} />
Props
property | propType | required | default | description |
---|---|---|---|---|
color | string |
| Sets the card for the correct color theme, default is
| |
postLimit | number |
| Sets the number of posts pulled from Medium, default is
|