0.19.2 • Published 4d ago
@not-govuk/generic-header
Licence
MIT
Version
0.19.2
Deps
5
Size
81 kB
Vulns
0
Weekly
0
Generic header
The Generic header component tells users they're using a government service that's not part of the GOV.UK website.
Using this package
First install the package into your project:
npm install -S @not-govuk/generic-header
Then use it in your code as follows:
import React, { createElement as h } from 'react';
import GenericHeader from '@not-govuk/generic-header';
export const MyComponent = props => (
<GenericHeader
organisationHref="#"
serviceName="Service name"
serviceHref="#"
/>
);
export default MyComponent;
Working on this package
Before working on this package you must install its dependencies using the following command:
pnpm install
Testing
npm test
Building
npm run build
Clean-up
npm run clean