@ta-interaktiv/react-masthead
Version:
Display the masthead in standalone projects.
44 lines (32 loc) • 848 B
Markdown
Display the masthead in standalone projects.
[](https://badge.fury.io/js/%40ta-interaktiv%2Freact-masthead)
```bash
yarn add @ta-interaktiv/react-masthead
```
```js
import React from 'react'
import { PureMasthead as Masthead } from '@ta-interaktiv/react-masthead'
// ...
class YourComponent extends React.Component {
render() {
return (
<Masthead
mediaName='tagesanzeiger'
homepage='//www.tagesanzeiger.ch'
fullMediaName='Tages-Anzeiger'
hashtags={['TAGrafik', 'DDJ']}
/>
)
}
}
```
You may add additional content to the middle column:
```js
<Masthead>
<div className='ui small infographic orange header'>WebSpezial</div>
</Masthead>
```