Copyright

The Copyright component from pol-ui is a useful way to display the author and the year of the copyright of the website / application...

Importation

Import the component from pol-ui to use the conveyor element:

import { Copyright } from "pol-ui";

Default conveyor

import { Copyright } from "pol-ui";
 
import React from "react";
 
const CopyrightComponent = () => {
  return <Copyright />;
};
export default CopyrightComponent;

Props

Prop nameTypeDefaultDescription
bystring""The name of the author.
classNamestring""The class name of the component.
hrefstring""The link to the author's website.
themeCopyrightThemeThe theme of the component.
yearnumbernew Date().getFullYear()The year of the copyright.

Examples

With values

Default conveyor

import { Copyright } from "pol-ui";
 
import React from "react";
 
const CopyrightComponent = () => {
  return (
    <Copyright
      by="Pol Gubau Amores"
      href="https://polgubau.com"
      year={new Date().getFullYear()}
    />
  );
};
export default CopyrightComponent;

Theme

To learn more about how to customize the appearance of components, please see the Theme docs.

interface CopyrightTheme {
  base: string;
  href: string;
  span: string;
}

Since February 15, 2024

Proudly Open Source
  • Npm

  • Github

  • Creator

  • Made with love and Pol-ui by Pol Gubau Amores