2.0.2 • Published 7 years ago

ta-react-masthead v2.0.2

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
7 years ago

Masthead Component

Display the masthead in standalone projects. This is the "dumb" version, which needs properties to be correctly configured.

Use the Polymorphic Masthead component, if you need a version that's independent from any mandates.

Installation

yarn add ta-react-masthead

Usage

import Masthead from 'ta-react-masthead';

// ...

class YourComponent extends React.Component {
  render() {

    return (
      <Masthead mediaName='tagesanzeiger' homepage='//www.tagesanzeiger.ch' 
      fullMediaName='Tages-Anzeiger' hashtags={['TAGrafik', 'DDJ']} />
    )
  }
}

API – 2.0.0

Props

PropertyTypeRequiredDefaultDescription
mediaNamestringno"tagesanzeiger"The name of the medium the standalone belongs to.
fullMediaNamestringno"Tages-Anzeiger"The name of the medium as it should be presented to readers.
homepagestringno"//www.tagesanzeiger.ch"The homepage that should be opened when clicking on the logo.
urlstringnoExtracted from URLThe URL that’s defined for sharing this content. If not provided extracted from project URL.
hashtags[string]noArray of strings to be used as hashtags when sharing.
communities[Object]noTwitter, FacebookArray of community objects, as delivered by the external services API. A default value is provided.
inverted boolnofalseUse inverted version for dark backgrounds.
2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago