@fellesdatakatalog/internal-footer
v0.5.1
Published
Felles datakatalog UI internal footer component
Downloads
64
Readme
@fellesdatakatalog/internal-footer
FDK footer component intended for internal use.
Installation
npm i @fellesdatakatalog/internal-footer
Dependencies
- react
- styled-components
- @fellesdatakatalog/theme
Usage
Basic usage
In order to use the footer component, wrap the application in global theme provider from @fellesdatakatalog/theme
. Then, use the footer as any regular component.
import React, { FC } from 'react';
import ThemeProvider from '@fellesdatakatalog/theme';
import Footer from '@fellesdatakatalog/internal-footer';
const App: FC = () => (
<ThemeProvider>
<Footer>Footer</Footer>
</ThemeProvider>
)
export default App;
Skatteetaten usage
In order to use the footer component, wrap the application in global theme provider from @fellesdatakatalog/theme
. Then, use the footer as any regular component.
import React, { FC } from 'react';
import ThemeProvider, { ThemeProfile } from '@fellesdatakatalog/theme';
import Footer from '@fellesdatakatalog/internal-footer';
const App: FC = () => (
<ThemeProvider>
<Footer themeProfile={ThemeProfile.SKE} />
</ThemeProvider>
)
export default App;