Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ta-interaktiv/react-masthead

ta-interaktiv357ISC6.2.2TypeScript support: included

Display the masthead in standalone projects.

react, ta, component, masthead

readme

Masthead Component

Display the masthead in standalone projects.

npm version

Installation

yarn add @ta-interaktiv/react-masthead

Usage

Pure Masthead

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:

<Masthead>
  <div className='ui small infographic orange header'>WebSpezial</div>
</Masthead>