@dbcdk/dbc-footer

1.3.3 • Public • Published

DBC Standardized footer

Props

  • topMargin: number - Specify the top spacing of the footer
  • className: string - Give css class to the root
  • footerLinks: either an array of objects or a single object - each object containing footerlinks. Each object contains the following fields:
    • title: string - The title of the link
    • href: string - The url of the link
    • target: string - the target attribute for the link

Usage

  • Install package via npm
  • Import styling with the line import "@dbcdk/dbc-footer/lib/main.css" in the project - By default, put this in the _app.js file
  • Import the footer with the line import DBCFooter from "@dbcdk/dbc-footer"

Previous version documentation

Props pre version 1.1.1

  • topMargin: number - Specify the top spacing of the footer
  • className: string - Give css class to the root
  • accessabilityLink: { href: string, (defaults to "/") target: string (defaults to "_blank") } - Link to accessability declaration
  • privacyLink: { href: string, (defaults to "/") target: string (defaults to "_blank") } - Link to privacy declaration

Props pre version 1.1.0

  • topMargin: number - Specify the top spacing of the footer
  • className: string - Give css class to the root
  • accessabilityLink: string - Link to accessability declaration
  • privacyLink: string - Link to privacy declaration

Readme

Keywords

none

Package Sidebar

Install

npm i @dbcdk/dbc-footer

Weekly Downloads

93

Version

1.3.3

License

MIT

Unpacked Size

28.1 kB

Total Files

11

Last publish

Collaborators

  • dbcdk