Skip to content

mooniker/react-copyright-notice-component

Repository files navigation

React Component for Copyright Notice (<CopyrightNotice />)

codecov Coverage Status Known Vulnerabilities dependencies Status npm version GitHub license

Use this component to put a semantic copyright notice on a page with React.

Getting started

Installation

npm install react-copyright-notice-component --save
# or
yarn add react-copyright-notice-component

Usage

For a minimal/generic copyright notice, assuming the current year:

<CopyrightNotice></CopyrightNotice>
<span class="copyright-notice"
  >&copy;
  <span property="dc:date" datatype="xsd:gYear">2019</span>
</span>

Give it more to work with by specifying a copyright holder:

<CopyrightNotice copyrightHolder="Michael Bluth"></CopyrightNotice>
<span class="copyright-notice"
  ><span>&copy;</span>
  <span property="dc:date" datatype="xsd:gYear">2019</span>
  <span>Michael Bluth</span></span
>

...and/or specify the year:

<CopyrightNotice copyrightHolder="Michael Bluth" year="2003"></CopyrightNotice>
<span class="copyright-notice"
  ><span>&copy;</span>
  <span property="dc:date" datatype="xsd:gYear">2003</span>
  <span>Michael Bluth</span></span
>

Running the tests

npm test
# or, for a coverage report:
npm run test:coverage

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A React component to render copyright notices

Resources

License

Stars

Watchers

Forks

Packages

No packages published