npm i "@axa-fr/react-toolkit-layout-footer"
The footer content will display what was passed in the copyright prop.
import React from 'react';
import { Footer } from '@axa-fr/react-toolkit-layout-footer';
const MyFooter => () => (
<Footer copyright="© 2017-2018 AXA Webcenter" />
)
You can hide icon by setting the boolean isIconHidden to true. By default the icon is shown.
import React from 'react';
import { Footer } from '@axa-fr/react-toolkit-layout-footer';
const MyFooter => () => (
<Footer copyright="© 2017-2018 AXA Webcenter" isIconHidden= {true} />
)
This core component displays its children instead of a copyright prop, therefore allowing HTML tags, e.g. :
import React from 'react';
import { FooterCore } from '@axa-fr/react-toolkit-layout-footer';
const MyFooterCore => () => (
<FooterCore>
<a href="https://www.axa.fr/">
@ AXA 2018
</a>
<i>Tous droits réservés</i>
</FooterCore>
)