Polymorphic Masthead
Display the masthead in standalone projects. Adapts to the mandate.
Installation
yarn add ta-react-polymorphic-masthead
Usage
import Masthead from 'ta-react-polymorphic-masthead';
// more code ...
class YourComponent extends React.Component {
render() {
return (
<Masthead articleID='346234' hashtags={['TAGrafik', 'DDJ']} />
)
}
}
API – 1.0
Props
Property | Type | Required | Default | Description |
---|---|---|---|---|
articleID |
string |
yes | – | The article ID of the link article. |
inverted |
bool |
no | false |
Used when icon list is displayed on dark backgrounds. |
hashtags |
[string] |
no | Array of strings to be used as hashtags when sharing. |