colby-react-article
v1.0.12
Published
A React component for displaying an article.
Downloads
14
Readme
colby-react-article
An article component for React.
Install
npm install --save colby-react-article
Include in your project
JS
import React from 'react';
import { render } from 'react-dom';
import Article from 'colby-react-article';
const container = document.getElementById('article');
if (container) {
render(<Article {...props} />, container);
}
Props
Types
content: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
breadcrumbTitle: PropTypes.string,
date: PropTypes.string,
link: PropTypes.string,
titleIsALink: PropTypes.bool,
useDefaultStyles: PropTypes.bool,
Defaults
breadcrumbTitle: null,
date: null,
link: null,
titleIsALink: false,
useDefaultStyles: true,