# @not-govuk/generic-header

> A component that tells users they're using a government service that's not part of the GOV.UK website.

Latest version **0.19.2** (published 2026-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @not-govuk/generic-header
pnpm add @not-govuk/generic-header
yarn add @not-govuk/generic-header
bun add @not-govuk/generic-header
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.19.2 |
| Published | 2026-10-07 |
| First published | 2026-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 80.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel A.C. Martin <npm@daniel-martin.co.uk> (http://daniel-martin.co.uk/) |
| Maintainers | daniel-ac-martin |
| Keywords | react-components |

## Links

- npm: https://www.npmjs.com/package/@not-govuk/generic-header
- npm.io page: https://npm.io/package/@not-govuk/generic-header

## Dependencies (5)

- [govuk-frontend](https://npm.io/package/govuk-frontend.md) ^6.5.1
- [@not-govuk/link](https://npm.io/package/@not-govuk/link.md) ^0.19.2
- [@not-govuk/sass-base](https://npm.io/package/@not-govuk/sass-base.md) ^0.19.2
- [@not-govuk/width-container](https://npm.io/package/@not-govuk/width-container.md) ^0.19.2
- [@react-foundry/component-helpers](https://npm.io/package/@react-foundry/component-helpers.md) ^0.6.2

## Recent versions

- 0.19.2 (latest) — 2026-10-07
- 0.19.1 — 2026-08-15
- 0.19.0 — 2026-08-08

## README

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:

```shell
npm install -S @not-govuk/generic-header
```

Then use it in your code as follows:

```js
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:

```shell
pnpm install
```


### Testing

```shell
npm test
```


### Building

```shell
npm run build
```


### Clean-up

```shell
npm run clean
```


[Generic header component]: https://design-system.service.gov.uk/components/generic-header/

---
_Source: https://npm.io/package/@not-govuk/generic-header · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
