@posten-hedwig/slimfooter

4.1.1 • Public • Published

SlimFooter

The Slim Footer is placed at the bottom of every page of the website.

The Slim Footer contains the logo, important links and copyright information

Usage

1 Install

npm install @posten-hedwig/slimfooter

2 Import

import { SlimFooter } from '@posten-hedwig/slimfooter'

3 Render

<SlimFooter
    logo='posten'
    logoHref='#'
    logoTitle='Posten Logo'
    importantLinks={...}
    copyright='Posten Norge AS'
/>

API

This prop specifies which logo to use for the navbar. 'posten' and 'bring' are available

SlimFooter logoHref

This prop is the link to where the logo is leading to

SlimFooter logoTitle

This prop specifies the alt text for the logo.

This prop specifies important links in the Footer. The links can be for cookie information and privacy policy for example

import { SlimFooter } from '@posten-hedwig/footer'
import { Link } from '@posten-hedwig/link'
/*…*/
<SlimFooter
    /*…*/
    importantLinks={
        [
            <Link href='#'>Cookies</Link>,
            <Link href='#'>Privacy policy</Link>
        ]
    }
/>

This prop specifies the name for copyright on this site. Default value "Posten Norge AS"

Readme

Keywords

Package Sidebar

Install

npm i @posten-hedwig/slimfooter

Weekly Downloads

17

Version

4.1.1

License

ISC

Unpacked Size

38.7 kB

Total Files

8

Last publish

Collaborators

  • amitjagtap04
  • harald.vinje
  • hellehi
  • viggooo