2.0.3 • Published 8 years ago

ta-react-copyright-notice v2.0.3

Weekly downloads
2
License
ISC
Repository
gitlab
Last release
8 years ago

Copyright Notice Component

Component to show a combination of media icon and "© 2017 Medium" text.

Installation

yarn add ta-react-copyright-notice

Usage

import CopyrightNotice from 'ta-react-copyright-notice';

/*
    ... other stuff
 */

class YourComponent extends React.Component {
  render() {

    return (
      <CopyrightNotice secondLevelDomainName='tagesanzeiger' fullName='Tages-Anzeiger' 
      year={2017} />
    )
  }
}

API – 2.0.0

Props

PropertyTypeRequiredDefaultDescription
secondLevelDomainNamestringnotagesanzeigerShort name of the medium. Corresponds to the second level domain name.
namestringnoTages-AnzeigerFull name of the medium.
yearnumbernoCurrent yearThe year that should be displayed in the notice
invertedboolno false Whether the notice should be render inverted for dark backgrounds.

Remarks

This component is pretty stupid and doesn't try to adapt to the current domain. This job is taken over by another container component that will then poll the API and get the relevant data.

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago